diff --git a/job_scripts/perlmutter/perlmutter.submit b/job_scripts/perlmutter/perlmutter.submit index 50df7f4..f43cace 100644 --- a/job_scripts/perlmutter/perlmutter.submit +++ b/job_scripts/perlmutter/perlmutter.submit @@ -76,7 +76,7 @@ slack_job_start.py "starting NERSC job: ${workdir} ${restartFile}" @michael # execute srun in the background then use the builtin wait so the shell can # handle the signal -srun -n 64 ${CASTRO_EXEC} ${INPUTS} ${restartString} & +srun -n $((SLURM_NTASKS_PER_NODE * SLURM_NNODES)) ${CASTRO_EXEC} ${INPUTS} ${restartString} & pid=$! wait $pid ret=$?