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

Added partition and gres keywords for GPU program support.

parent bfb20398
......@@ -2,8 +2,6 @@
source "/home/pape58/gitlab-runner-custom/base.sh"
1>&2 echo "Config is beeing executed. Custom env path: $CUSTOM_ENV_PATH"
cat << EOS
{
"builds_dir": "/home/pape58/runner-wd/builds/$CUSTOM_ENV_PATH",
......
......@@ -9,14 +9,14 @@ NC='\033[0m' # no color
# 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)
SLURM_OPTIONS=(cpus-per-task nodes ntasks ntasks-per-node partition gres)
function getSlurmVar {
local option
option=$(echo "${2^^}" | tr - _)
{
sed -e 's/\\n/\n/g' "$1" | grep "export CI_SLURM_$option=" | cut -d "=" -f 2
sed -e 's/\\n/\n/g' "$1" | grep "export CI_SLURM_$option=" | cut -d "=" -f 2 | tr -d "$\\\'"
} || {
# TODO: return sensible default values?
echo ""
......
Supports Markdown
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