Skip to content
Snippets Groups Projects
Commit e24dac62 authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

importexp: added SLURM_NODELIST to environment

parent d7a7251e
No related branches found
No related tags found
No related merge requests found
......@@ -79,11 +79,13 @@ done\
' $RUN_FILE)
SLURM_JOB_NUM_NODES=$(perl -ne 'if(/^\s*#SBATCH\s+(--nodes|-N)(=|\s+)(\d+)/) {print($3); exit}' $RUN_FILE)
export SLURM_JOB_NUM_NODES
SLURM_NODELIST="n[00001-$SLURM_JOB_NUM_NODES]"
SLURM_JOB_CPUS_PER_NODE=72
export SLURM_JOB_NUM_NODES SLURM_NODELIST SLURM_JOB_CPUS_PER_NODE
echo "Running '$RUN_SCRIPT'" >&2
SLURM_JOB_CPUS_PER_NODE=72 ${COMMAND:-/bin/sh} -x $RUN_FILE > $LOG_FILE 2>&1
${COMMAND:-/bin/sh} -x $RUN_FILE > $LOG_FILE 2>&1
echo "Generating configuration" >&2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment