Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
remind
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
Container 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
Jerome Hilaire
remind
Merge requests
!88
Made table of SLURM options easier to read.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Made table of SLURM options easier to read.
github/fork/dklein-pik/develop
into
develop
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Jerome Hilaire
requested to merge
github/fork/dklein-pik/develop
into
develop
5 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
Created by: dklein-pik
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
1ddd5481
2 commits,
4 years ago
1 file
+
21
−
16
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
scripts/start/choose_slurmConfig.R
+
21
−
16
Options
@@ -18,27 +18,32 @@ get_line <- function(){
choose_slurmConfig
<-
function
()
{
slurm
<-
suppressWarnings
(
ifelse
(
system2
(
"srun"
,
stdout
=
FALSE
,
stderr
=
FALSE
)
!=
127
,
TRUE
,
FALSE
))
if
(
slurm
)
{
modes
<-
c
(
" SLURM standby - task per node: 12 (nash H12) [recommended]"
,
" SLURM standby - task per node: 13 (nash H12 coupled)"
,
" SLURM standby - task per node: 16 (nash H12+)"
,
" SLURM standby - task per node: 1 (nash debug, testOneRegi, reporting)"
,
" SLURM priority - task per node: 12 (nash H12) [recommended]"
,
" SLURM priority - task per node: 13 (nash H12 coupled)"
,
" SLURM priority - task per node: 16 (nash H12+)"
,
" SLURM priority - task per node: 1 (nash debug, testOneRegi, reporting)"
,
" SLURM short - task per node: 12 (nash H12)"
,
"SLURM short - task per node: 16 (nash H12+)"
,
"SLURM short - task per node: 1 (nash debug, testOneRegi, reporting)"
,
"SLURM medium - task per node: 1 (negishi)"
,
"SLURM long - task per node: 1 (negishi)"
)
if
(
slurm
)
{
modes
<-
c
(
" 1: SLURM standby 12 nash H12 [recommended]"
,
" 2: SLURM standby 13 nash H12 coupled"
,
" 3: SLURM standby 16 nash H12+"
,
" 4: SLURM standby 1 nash debug, testOneRegi, reporting"
,
"-----------------------------------------------------------------------"
,
" 5: SLURM priority 12 nash H12 [recommended]"
,
" 6: SLURM priority 13 nash H12 coupled"
,
" 7: SLURM priority 16 nash H12+"
,
" 8: SLURM priority 1 nash debug, testOneRegi, reporting"
,
"-----------------------------------------------------------------------"
,
" 9: SLURM short 12 nash H12"
,
"10: SLURM short 16 nash H12+"
,
"11: SLURM short 1 nash debug, testOneRegi, reporting"
,
"12: SLURM medium 1 negishi"
,
"13: SLURM long 1 negishi"
)
cat
(
"\nCurrent cluster utilization:\n"
)
system
(
"sclass"
)
cat
(
"\n"
)
cat
(
"\nPlease choose run submission type:\n"
)
cat
(
paste
(
1
:
length
(
modes
),
modes
,
sep
=
": "
),
sep
=
"\n"
)
cat
(
"\nPlease choose the SLURM configuration for your submission:\n"
)
cat
(
" QOS tasks per node suitable for\n=======================================================================\n"
)
#cat(paste(1:length(modes), modes, sep=": " ),sep="\n")
cat
(
modes
,
sep
=
"\n"
)
cat
(
"=======================================================================\n"
)
cat
(
"Number: "
)
identifier
<-
get_line
()
identifier
<-
as.numeric
(
strsplit
(
identifier
,
","
)[[
1
]])
Loading