Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FWCC
GitLab HPC Driver Prototype
Commits
654e2c5c
Commit
654e2c5c
authored
Oct 21, 2019
by
Pape, David (FWCC) - 139658
Browse files
Added partition and gres keywords for GPU program support.
parent
bfb20398
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.sh
View file @
654e2c5c
...
...
@@ -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
",
...
...
run.sh
View file @
654e2c5c
...
...
@@ -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
""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment