forked from OSC/bc_osc_codeserver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
submit.yml.erb
44 lines (43 loc) · 877 Bytes
/
submit.yml.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<%-
nodes = bc_num_slots.blank? ? 1 : bc_num_slots.to_i
case custom_queue
when "ondemand-p100"
slurm_args = [
"--nodes", "#{nodes}",
"-c", "#{num_cores}",
"--partition", "ondemand-p100"
]
when "classroomgpu"
slurm_args = [
"--nodes", "#{nodes}",
"-c", "#{num_cores}",
"--partition", "classroomgpu"
]
when "cryogars"
slurm_args = [
"--nodes", "#{nodes}",
"-c", "#{num_cores}",
"--partition", "cryogars"
]
else
slurm_args = [
"--nodes", "#{nodes}",
"-c", "#{num_cores}",
"--partition", "ondemand"
]
end
if enable_gpu == "1"
slurm_args += ["--gpus-per-node", "1"]
end
%>
---
batch_connect:
template: "basic"
conn_params:
- code_server_version
script:
native:
<%- slurm_args.each do |arg| %>
- "<%= arg %>"
<%- end %>
- "-J VSCode"