From 5719e247efc35f9bc51507a4c70f9ebb5bd9d045 Mon Sep 17 00:00:00 2001 From: caubet_m Date: Wed, 24 Aug 2022 13:40:41 +0200 Subject: [PATCH] GOTHIC: include exit code, add --x11/interactive --- pages/merlin6/05-Software-Support/gothic.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/merlin6/05-Software-Support/gothic.md b/pages/merlin6/05-Software-Support/gothic.md index 5923a2f..77ab1cd 100644 --- a/pages/merlin6/05-Software-Support/gothic.md +++ b/pages/merlin6/05-Software-Support/gothic.md @@ -127,12 +127,12 @@ section. #### Interactive allocations: examples * Requesting a full node, ```bash -salloc --partition=hourly -N 1 -n 1 -c 88 --hint=multithread --exclusive --mem=0 +salloc --partition=hourly -N 1 -n 1 -c 88 --hint=multithread --x11 --exclusive --mem=0 ``` * Requesting 22 CPUs from a node, with default memory per CPU (4000MB/CPU): ```bash num_cpus=22 -salloc --partition=hourly -N 1 -n 1 -c $num_cpus --hint=multithread +salloc --partition=hourly -N 1 -n 1 -c $num_cpus --hint=multithread --x11 ``` ### Batch job @@ -180,6 +180,7 @@ the job, as showed above. export GTHTMP=/scratch/$USER/$SLURM_JOB_ID /data/project/general/software/gothic/gothic8.3qa/bin/gothic_s.sh $INPUT_FILE -m -np $SLURM_CPUS_PER_TASK + gth_exit_code=$? rm -rf /scratch/$USER/$SLURM_JOB_ID ``` @@ -201,6 +202,8 @@ the job, as showed above. export GTHTMP=/scratch/$USER/$SLURM_JOB_ID /data/project/general/software/gothic/gothic8.3qa/bin/gothic_s.sh $INPUT_FILE -m -np $SLURM_CPUS_PER_TASK - + gth_exit_code=$? + rm -rf /scratch/$USER/$SLURM_JOB_ID + exit $gth_exit_code ```