Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bc_uab_matlab
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bo-Chun Chen
bc_uab_matlab
Commits
00dd1f22
Unverified
Commit
00dd1f22
authored
4 years ago
by
Jeff Ohrstrom
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #11 from OSC/owens-slurm
add owens-slurm cluster to begin migratio to slurm
parents
098ade1c
cf9e6ce7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+15
-7
15 additions, 7 deletions
.gitlab-ci.yml
form.yml
+6
-4
6 additions, 4 deletions
form.yml
submit.yml.erb
+24
-5
24 additions, 5 deletions
submit.yml.erb
with
45 additions
and
16 deletions
.gitlab-ci.yml
+
15
−
7
View file @
00dd1f22
variables
:
# older versions of git have issues fetching.
GIT_STRATEGY
:
clone
before_script
:
-
docker info
-
'
[
-d
tmp
]
||
mkdir
tmp'
...
...
@@ -20,15 +25,18 @@ rpm-build:
name
:
"
$CI_PROJECT_NAME-$CI_COMMIT_TAG"
rpm-deploy-ci
:
stage
:
deploy
only
:
-
tags
script
:
-
./tmp/ondemand-packaging/release.py --debug --pkey /systems/osc_certs/ssh/ondemand-packaging/id_rsa -c ci ./tmp/output/*
rpm-deploy
:
variables
:
RLS_SCRIPT
:
"
./tmp/ondemand-packaging/release.py"
RLS_KEY
:
"
/systems/osc_certs/ssh/ondemand-packaging/id_rsa"
RLS_OUTPUT
:
"
./tmp/output/*"
SECTION
:
"
main"
stage
:
deploy
only
:
-
tags
except
:
variables
:
-
$CI_COMMIT_TAG =~ /.*_.*/
script
:
-
if [[ "$CI_COMMIT_TAG" =~ .*_.* ]]; then export SECTION=ci; fi
-
$RLS_SCRIPT --debug --pkey $RLS_KEY -c $SECTION $RLS_OUTPUT
-
./tmp/ondemand-packaging/release.py --debug --pkey /systems/osc_certs/ssh/ondemand-packaging/id_rsa -c main ./tmp/output/*
This diff is collapsed.
Click to expand it.
form.yml
+
6
−
4
View file @
00dd1f22
---
cluster
:
"
owens"
cluster
:
-
"
owens"
-
"
owens-slurm"
form
:
-
version
-
bc_account
...
...
@@ -41,9 +43,9 @@ attributes:
running in the background. This utilizes the GPU for hardware
accelerated 3D visualization. There are 160 of these nodes on Owens.
options
:
-
[
"
any"
,
"
"
]
-
[
"
hugemem"
,
"
:hugemem"
]
-
[
"
vis"
,
"
:vis:gpus=1"
]
-
"
any"
-
"
hugemem"
-
"
vis"
version
:
widget
:
select
label
:
"
MATLAB
version"
...
...
This diff is collapsed.
Click to expand it.
submit.yml.erb
+
24
−
5
View file @
00dd1f22
<%-
ppn
=
num_cores
.
blank?
?
28
:
num_cores
.
to_i
if
node_type
==
':hugemem'
ppn
=
48
end
ppn
=
num_cores
.
blank?
?
28
:
num_cores
.
to_i
nodes
=
bc_num_slots
.
blank?
?
1
:
bc_num_slots
.
to_i
torque_cluster
=
OodAppkit
.
clusters
[
cluster
].
job_config
[
:adapter
]
==
'torque'
case
node_type
when
"hugemem"
ppn
=
48
partition
=
bc_num_slots
.
to_i
>
1
?
"hugemem-parallel"
:
"hugemem"
slurm_args
=
[
"--nodes"
,
"
#{
nodes
}
"
,
"--ntasks-per-node"
,
"
#{
ppn
}
"
,
"--partition"
,
partition
]
torque_args
=
"
#{
nodes
}
:ppn=
#{
ppn
}
:
#{
node_type
}
"
when
"vis"
slurm_args
=
[
"--nodes"
,
"
#{
nodes
}
"
,
"--ntasks-per-node"
,
"
#{
ppn
}
"
,
"--gpus-per-node"
,
"1"
,
"--gres"
,
"vis"
]
torque_args
=
"
#{
nodes
}
:ppn=
#{
ppn
}
:
#{
node_type
}
:gpus=1"
else
slurm_args
=
[
"--nodes"
,
"
#{
nodes
}
"
,
"--ntasks-per-node"
,
"
#{
ppn
}
"
]
torque_args
=
"
#{
nodes
}
:ppn=
#{
ppn
}
"
end
%>
---
batch_connect:
template: vnc
script:
native:
<%-
if
torque_cluster
%>
resources:
nodes: "
<%=
bc_num_slots
.
blank?
?
"1"
:
bc_num_slots
.
to_i
%>
:ppn=
<%=
ppn
%><%=
node_type
%>
"
nodes: "
<%=
torque_args
%>
"
<%-
else
%>
<%-
slurm_args
.
each
do
|
arg
|
%>
- "
<%=
arg
%>
"
<%-
end
%>
<%-
end
%>
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