]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #PSUB -s /bin/bash # Sets your shell in batch |
2 | #PSUB -c alc # Where to run the job | |
3 | ||
4 | #PSUB -eo # Send std error & std out to the same file | |
5 | ||
6 | #PSUB -ln $NUM # Number of nodes to use | |
7 | #PSUB -g $NUM # Total Number of tasks to use | |
8 | #PSUB -cpn 1 # cpus per node | |
9 | ||
10 | ####PSUB -c 1024Mb # memory limit | |
11 | #PSUB -lc 1500 # Core file size per process | |
12 | #PSUB -nr # Do not automatically resubmit job | |
13 | #PSUB -tM 20m # Select time limit. The default time limit | |
14 | # is only 30 minutes! Time can be HH:MM:SS or HH:MM | |
15 | ||
16 | #PSUB -o $CWD/$OUT # filename for output | |
17 | ||
18 | # Put your commands here. Remember to 'cd' to the appropriate | |
19 | # directory, because the job will initially be in your home directory. | |
20 | # To run a parallel job, you need to use the srun. | |
21 | ||
22 | ||
23 | ||
24 | echo job $PSUB_JOBID nodes $NUM name $NAME | |
25 | ||
26 | # environment | |
27 | cd $CWD | |
28 | export LD_LIBRARY_PATH=/usr/lib/mpi/mpi_gnu/lib | |
29 | ||
30 | # create fakestore dirs | |
31 | srun -l -N $NUM -ppbatch bash -c "test -d tmp/osddata || mkdir tmp/osddata || echo cant make osddata ; uptime" | |
32 | ||
33 | # go | |
34 | srun -l -N $NUM -ppbatch $CMD && touch $DONE | |
35 | ||
36 | # clean up fakestore | |
37 | srun -l -N $NUM -ppbatch bash -c 'uptime ; rm -r tmp/osddata/*' | |
38 |