Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
Next revision
Both sides next revision
|
cluster:134 [2014/08/20 13:54] hmeij [High Throughput] |
cluster:134 [2014/08/20 14:26] hmeij [High Throughput] |
Next I will add a proplog/epilog script to my submit job script which will create | Next I will add a proplog/epilog script to my submit job script which will create |
/localscratch/$SLURM_JOB_ID, echo the date into file foo, then cat foo to standard out and finish with removing the scratch dir. These prolog/epilog actions needs to be done by slurmd but so far it errors for me. Does slow things down a bit. Same conditions as above. | /localscratch/$SLURM_JOB_ID, echo the date into file foo, then cat foo to standard out and finish with removing the scratch dir. These prolog/epilog actions needs to be done by slurmd but so far it errors for me. Does slow things down a bit. Same conditions as above. |
| |
| <code> |
| #!/bin/bash |
| /share/apps/lsf/slurm_prolog.pl |
| |
| #SBATCH --job-name="NUMBER" |
| #SBATCH --output="tmp/outNUMBER" |
| #SBATCH --begin=10:00:00 |
| |
| # unique job scratch dir |
| export MYLOCALSCRATCH=/localscratch/$SLURM_JOB_ID |
| cd $MYLOCALSCRATCH |
| |
| echo "$SLURMD_NODENAME JOB_PID=$SLURM_JOB_ID" >> foo |
| date >> foo |
| cat foo |
| |
| /share/apps/lsf/slurm_epilog.pl |
| </code> |
| |
| |
^NrJobs^N^hh:mm:ss^ | ^NrJobs^N^hh:mm:ss^ |