From 156b7e610e883dcb79783adab77675aae41079c9 Mon Sep 17 00:00:00 2001 From: "Eric T. Johnson" Date: Tue, 20 Feb 2024 16:16:57 -0500 Subject: [PATCH] Fix graceful exit on perlmutter I misread the manual: --signal takes a time in seconds, not minutes. --- job_scripts/perlmutter/perlmutter.submit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/job_scripts/perlmutter/perlmutter.submit b/job_scripts/perlmutter/perlmutter.submit index 71f8724..50df7f4 100644 --- a/job_scripts/perlmutter/perlmutter.submit +++ b/job_scripts/perlmutter/perlmutter.submit @@ -10,7 +10,7 @@ #SBATCH --ntasks-per-node=4 #SBATCH --gpus-per-task=1 #SBATCH --gpu-bind=map_gpu:0,1,2,3 -#SBATCH --signal=B:URG@2 +#SBATCH --signal=B:URG@120 export CASTRO_EXEC=./Castro2d.gnu.MPI.CUDA.SMPLSDC.ex export INPUTS=inputs_2d.N14 @@ -61,7 +61,7 @@ fi rm -f dump_and_stop # The `--signal=B:URG@` option tells slurm to send SIGURG to this batch -# script n minutes before the runtime limit, so we can exit gracefully. +# script n seconds before the runtime limit, so we can exit gracefully. function sig_handler { touch dump_and_stop # disable this signal handler