Mercurial > hg > cc > cirrus_home
changeset 202:491b6d11dd14
works now with somewhat redundant --array=a-b and runme.sh -m a b
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Mon, 20 Apr 2026 18:22:38 +0100 |
| parents | 93dc3b9f70a6 |
| children | 2aa9db279d56 |
| files | bin/runme.sh |
| diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/runme.sh Thu Mar 26 17:27:21 2026 +0000 +++ b/bin/runme.sh Mon Apr 20 18:22:38 2026 +0100 @@ -13,14 +13,19 @@ if [ "$1" = "-m" ] then + # Can't get this to work: timed out after an hour, and didn't run all 5 jobs + # See slurm_s20-29x5_array.out and comments about that in notes.txt + #echo "-m not supported" 1>&2 + #exit 1 a=$SLURM_ARRAY_TASK_ID echo "Array id $a $SLURM_ARRAY_TASK_COUNT" > mtest$a.out ss=$2-$3 shift; shift; shift; 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 echo $(date) Launching $a >> mtest$a.out - srun -N1 -c $SLURM_CPUS_PER_TASK $W/shared/bin/sing $W/hst/bin/_runme.sh -a $a "$@" >> mtest$a.out + srun -c $SLURM_CPUS_PER_TASK $W/shared/bin/sing $W/hst/bin/_runme.sh -a $a "$@" >> mtest$a.out echo $(date) Finished $a $? >> mtest$a.out + exit 0 if [ "$exclude" ] then exclude+=",$SLURMD_NODENAME" @@ -29,7 +34,7 @@ fi echo $exclude >> mtest$a.out else - echo $(date) Launching $SLURM_JOB_NUM_NODES nodes in $(pwd) for runme "$@" from $(hostname) to do $SLURM_NTASKS tasks, $SLURM_CPUS_PER_TASK cpus each >> mtest$a.out + echo $(date) Launching $SLURM_JOB_NUM_NODES nodes in $(pwd) for runme "$@" from $(hostname) to do $SLURM_NTASKS tasks, $SLURM_CPUS_PER_TASK cpus each srun --unbuffered -c $SLURM_CPUS_PER_TASK $W/shared/bin/sing $W/hst/bin/_runme.sh "$@" echo $(date) Finished
