Commit b451a901 authored by Lukas Werner's avatar Lukas Werner
Browse files

Add check for node, set number of nodes = 1, partition = work

parent 21c2f191
......@@ -71,6 +71,15 @@ if [[ ("$2" == "step_script" || "$2" == "build_script") && ${CUSTOM_ENV_SUBMIT_T
: "${SLURM_TIME:=$SLURM_TIMELIMIT}"
: "${SLURM_NODELIST:="phinally"}" # default node: phinally
if [ ! $(sinfo -n "$SLURM_NODELIST" -h -O NodeList) ]; then
echo "Unknown node $SLURM_NODELIST specified. Available nodes: " >&2
echo "$(sinfo -N -o '%N %c %m')" >&2
error
fi
SLURM_NODES=1 # currently only individual nodes can be used
export SLURM_NODES
export SLURM_JOB_NAME
export SLURM_TIME
unset SLURM_TIMELIMIT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment