Skip to content

Commit

Permalink
Merge pull request #24 from yut23/fix-perlmutter-signal
Browse files Browse the repository at this point in the history
Fix graceful exit on perlmutter
  • Loading branch information
zingale authored Feb 21, 2024
2 parents 29a9096 + 156b7e6 commit 87036cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions job_scripts/perlmutter/perlmutter.submit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -61,7 +61,7 @@ fi
rm -f dump_and_stop

# The `--signal=B:URG@<n>` 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
Expand Down

0 comments on commit 87036cb

Please sign in to comment.