1
#PSUB -s /bin/bash # Sets your shell in batch
2
#PSUB -c alc # Where to run the job
4
#PSUB -eo # Send std error & std out to the same file
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
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
16
#PSUB -o $CWD/$OUT # filename for output
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.
24
echo job $PSUB_JOBID nodes $NUM name $NAME
28
export LD_LIBRARY_PATH=/usr/lib/mpi/mpi_gnu/lib
30
# create fakestore dirs
31
srun -l -N $NUM -ppbatch bash -c "test -d tmp/osddata || mkdir tmp/osddata || echo cant make osddata ; uptime"
34
srun -l -N $NUM -ppbatch $CMD && touch $DONE
37
srun -l -N $NUM -ppbatch bash -c 'uptime ; rm -r tmp/osddata/*'