User Tools

Site Tools


slurm_localscratch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
slurm_localscratch [2018/03/23 14:35]
meesters
slurm_localscratch [2018/04/18 13:07]
noskov
Line 8: Line 8:
 </​WRAP>​ </​WRAP>​
  
-<WRAP center round warn 80%>+<WRAP center round important ​80%>
 This local scratch is only accessible during the run time on a given job. It will be cleaned up upon the ending of each job. This local scratch is only accessible during the run time on a given job. It will be cleaned up upon the ending of each job.
 </​WRAP>​ </​WRAP>​
Line 224: Line 224:
 # We define a bash function to do the cleaning when the signal is caught # We define a bash function to do the cleaning when the signal is caught
 cleanup() { cleanup() {
-     ​sbcast ${JOBDIR}/${SAVEDPWD}/​${SLURM_JOB_ID}/​+     ​sbcast ${JOBDIR}/resultfile ​${SAVEDPWD}/​${SLURM_JOB_ID}/​resultfile
      exit 0      exit 0
 } }
Line 233: Line 233:
  
 # copy the input file on all nodes # copy the input file on all nodes
-sbcast ${HOME}/​NAMD_2.9/​apoa1 $JOBDIR+sbcast ${HOME}/​NAMD_2.9/​apoa1.namd $JOBDIR/apoa1.namd
 # some applications only need the file on the '​master'​ node # some applications only need the file on the '​master'​ node
 # in this case you can restrict yourself to: # in this case you can restrict yourself to:
-cp ${HOME}/​NAMD_2.9/​apoa1 $JOBDIR+cp ${HOME}/​NAMD_2.9/​apoa1.namd $JOBDIR/apoa1.namd
  
 # Go to jobdir and start the program # Go to jobdir and start the program
 cd "​${JOBDIR}"​ cd "​${JOBDIR}"​
    
-$@ "​${JOBDIR}/apoa1/​apoa1.namd"​+$@ "​${JOBDIR}/​apoa1.namd"​
  
 # Call the cleanup function when everything went fine # Call the cleanup function when everything went fine
slurm_localscratch.txt · Last modified: 2018/04/18 13:07 by noskov