CCS Prologue
-
Tuesday, December 04, 2007 11:04 PMHi,
I have an application that runs across 2-3 nodes that write data to a local c:\scratch on each node.
I would like to have this directory cleaned out on each node at the end of the job before the next job starts, even if the job is cancelled.
Is their a "Prologue" functionality in CCS, or what is the recommended way to do this.
Thanks,
Cham Dorr
All Replies
-
Monday, December 10, 2007 6:09 PM
Cham,
Unfortunately there is no prologue, but you can add a clean up task in your job that depends on your write data.
I suggest you to write a little batch file that you can mpiexec like this :
mpiexec -hosts %CCP_NODES: 4= 1% cmd /c cleanup.cmd
this is to execute on 4 core servers only one cleanup.cmd batch file.
If the job failed or is cancelled, this task may be executed. I suggest you eventually to do a cleanup before starting your job too.
So in your job you ay have 3 tasks :
cleanup
compute
cleanup
HTH
Xavier
- Marked As Answer by Josh BarnardModerator Monday, June 23, 2008 11:43 PM