Commit d3119c58 authored by Pape, David (FWCC) - 139658's avatar Pape, David (FWCC) - 139658
Browse files

More refactoring

parent 689627c3
......@@ -2,6 +2,9 @@
set -eo pipefail
# This is needed since the runner's working directory is /tmp which is not shared between nodes.
# TODO: Find out why the runner uses /tmp instead of its working directory, anyway.
WORK_DIR="/home/pape58/runner-wd"
SLURM_OPTIONS=(cpus-per-task nodes ntasks ntasks-per-node)
function getSlurmVar {
......@@ -12,14 +15,6 @@ function getSlurmVar {
sed -e 's/\\n/\n/g' "$1" | grep "export CI_SLURM_$option=" | cut -d "=" -f 2
} || {
# TODO: return sensible default values?
#case "$option" in
# "CPUS_PER_TASK") echo "4";;
# "NODES") echo "1";;
# "NTASKS") echo "4");;
# "NTASKS-PER-NODE") echo "";;
# *) echo ""
#esac
echo ""
}
}
......@@ -45,10 +40,6 @@ function slurmJobExitCode {
# This has to be run!
#
# This is needed since the runner's working directory is /tmp which is not shared between nodes.
# TODO: Find out why the runner uses /tmp instead of its working directory, anyway.
WORK_DIR="/home/pape58/runner-wd"
module load git 2> /dev/null
script=${*: -2:1}
......
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