comparison bin/runme.sh @ 203:2aa9db279d56

--array + -m now working
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 22 Apr 2026 18:50:07 +0100
parents 491b6d11dd14
children 4ccd8ad84e82
comparison
equal deleted inserted replaced
202:491b6d11dd14 203:2aa9db279d56
11 11
12 export W=/work/dc007/dc007 12 export W=/work/dc007/dc007
13 13
14 if [ "$1" = "-m" ] 14 if [ "$1" = "-m" ]
15 then 15 then
16 # Can't get this to work: timed out after an hour, and didn't run all 5 jobs
17 # See slurm_s20-29x5_array.out and comments about that in notes.txt
18 #echo "-m not supported" 1>&2
19 #exit 1
20 a=$SLURM_ARRAY_TASK_ID 16 a=$SLURM_ARRAY_TASK_ID
21 echo "Array id $a $SLURM_ARRAY_TASK_COUNT" > mtest$a.out 17 echo "Array id $a $SLURM_ARRAY_TASK_COUNT" > mtest$a.out
22 ss=$2-$3 18 ss=$2-$3
23 shift; shift; shift; 19 shift; shift; shift;
24 echo $(date) Launching $SLURM_JOB_NUM_NODES nodes in $(pwd) for runme -a $ss "$@" from $(hostname) to do $SLURM_NTASKS tasks, $SLURM_CPUS_PER_TASK cpus each >> mtest$a.out 20 echo $(date) Launching $SLURM_JOB_NUM_NODES nodes in $(pwd) for runme -a $ss "$@" from $(hostname) to do $SLURM_NTASKS tasks, $SLURM_CPUS_PER_TASK cpus each >> mtest$a.out