Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cx-custom-gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lukas Werner
cx-custom-gitlab-runner
Commits
b451a901
Commit
b451a901
authored
3 years ago
by
Lukas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Add check for node, set number of nodes = 1, partition = work
parent
21c2f191
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runner_scripts/root/run.sh
+9
-0
9 additions, 0 deletions
runner_scripts/root/run.sh
with
9 additions
and
0 deletions
runner_scripts/root/run.sh
+
9
−
0
View file @
b451a901
...
@@ -71,6 +71,15 @@ if [[ ("$2" == "step_script" || "$2" == "build_script") && ${CUSTOM_ENV_SUBMIT_T
...
@@ -71,6 +71,15 @@ if [[ ("$2" == "step_script" || "$2" == "build_script") && ${CUSTOM_ENV_SUBMIT_T
:
"
${
SLURM_TIME
:
=
$SLURM_TIMELIMIT
}
"
:
"
${
SLURM_TIME
:
=
$SLURM_TIMELIMIT
}
"
:
"
${
SLURM_NODELIST
:
=
"phinally"
}
"
# default node: phinally
:
"
${
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_JOB_NAME
export
SLURM_TIME
export
SLURM_TIME
unset
SLURM_TIMELIMIT
unset
SLURM_TIMELIMIT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment