Skip to content
Snippets Groups Projects
Commit 2c53d3ef authored by Jan Ebert's avatar Jan Ebert
Browse files

Fix error propagations

parent 4ebfd513
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ NUM_JOBS=3
RUNTIME_PER_JOB="00:20:00"
# Make sure ROOT_OUTPUT_DIR was set in variables.bash
[ "x$ROOT_OUTPUT_DIR" = x ] && source variables.bash
[ "x$ROOT_OUTPUT_DIR" = x ] && source variables.bash || exit 1
# Set checkpoint directory
TIMESTAMP=`date +%Y-%m-%d_%H-%M-%S`
......
......@@ -14,17 +14,17 @@ fi
[ -x "$(command -v deactivate)" ] && deactivate
module purge
source modules.bash
source modules.bash || return 1
source variables.bash
source utils.bash
source variables.bash || return 1
source utils.bash || return 1
if ! [ -d "$VENV_DIR" ]; then
echo 'Please execute `nice bash set_up.bash` before continuing.'
return 1
fi
source "$VENV_DIR/bin/activate"
source "$VENV_DIR/bin/activate" || return 1
export PYTHONPATH="$(realpath "$VENV_DIR"/lib/python*/site-packages):$PYTHONPATH"
# Set `TORCH_CUDA_ARCH_LIST` according to GPU's compute capability.
......@@ -36,7 +36,7 @@ elif [ "$SYSTEMNAME" = juwels ]; then
export TORCH_CUDA_ARCH_LIST='7.0'
else
echo "The machine \"$SYSTEMNAME\" is currently not supported."
return
return 1
fi
# Also allow generating PTX instructions (just because, we could also
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment