Mercurial > hg > cc > cirrus_home
changeset 196:436c976ed27f
try to get -m working properly
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Tue, 22 Apr 2025 14:32:50 +0100 |
| parents | 5f3c36e4fd6d |
| children | 78d9e09e151e |
| files | bin/runme.sh |
| diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/runme.sh Thu Sep 26 17:55:56 2024 +0100 +++ b/bin/runme.sh Tue Apr 22 14:32:50 2025 +0100 @@ -6,7 +6,7 @@ #SBATCH --time=01:00:00 #SBATCH --partition=standard #SBATCH --qos=standard -#SBATCH --account=ec184-hst +#SBATCH --account=ec276-hst #SBATCH --job-name runme export W=/work/dc007/dc007 @@ -18,9 +18,12 @@ 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 1>&2 for i in $(eval echo $ss) do - srun --unbuffered -c $SLURM_CPUS_PER_TASK $W/shared/bin/sing $W/hst/bin/_runme.sh -a $i "$@" - echo $(date) Finished $i + echo $(date) Launching $i + srun --unbuffered -c $SLURM_CPUS_PER_TASK $W/shared/bin/sing $W/hst/bin/_runme.sh -a $i "$@" & + echo $(date) Launched $i done + wait + echo $(date) Finished 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 1>&2
