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
41d53a64
Unverified
Commit
41d53a64
authored
4 years ago
by
Jeff Ohrstrom
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #13 from OSC/account-select
Account select
parents
9abdf3eb
84dfaf67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
form.yml.erb
+12
-4
12 additions, 4 deletions
form.yml.erb
submit.yml.erb
+1
-9
1 addition, 9 deletions
submit.yml.erb
with
13 additions
and
13 deletions
form.yml
→
form.yml
.erb
+
12
−
4
View file @
41d53a64
<%-
groups
=
OodSupport
::
User
.
new
.
groups
.
sort_by
(
&
:id
).
tap
{
|
groups
|
groups
.
unshift
(
groups
.
delete
(
OodSupport
::
Process
.
group
))
}.
map
(
&
:name
).
grep
(
/^P./
)
-%>
---
cluster:
- "owens"
-
"
owens-slurm"
form:
- version
-
bc_
account
- account
- bc_num_hours
- bc_num_slots
- num_cores
...
...
@@ -26,9 +30,13 @@ attributes:
bc_num_slots: "1"
bc_vnc_resolution:
required: true
bc_
account
:
account:
label: "Project"
help
:
"
You
can
leave
this
blank
if
**not**
in
multiple
projects."
widget: select
options:
<%-
groups
.
each
do
|
group
|
%>
- "
<%=
group
%>
"
<%-
end
%>
node_type:
widget: select
label: "Node type"
...
...
This diff is collapsed.
Click to expand it.
submit.yml.erb
+
1
−
9
View file @
41d53a64
<%-
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:
accounting_id: "
<%=
account
%>
"
native:
<%-
if
torque_cluster
%>
resources:
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