-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit.yml.erb
38 lines (34 loc) · 1.17 KB
/
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
batch_connect:
template: "basic"
conn_params:
- csrf_token
script:
native: [
"-c", "<%= ec_cpus.blank? ? 1 : ec_cpus.to_i %>",
<%- if ec_gpus.to_i > 0 -%>
<%- case ec_alacarte -%>
<%- when 'RTX30' -%>
"--partition=accel",
"--gres=gpu:rtx30:<%= ec_gpus.to_i %>",
<%- when 'A100-40' -%>
"--partition=accel",
"--gres=gpu:a100:<%= ec_gpus.to_i %>",
"--exclude=gpu-[7-9]",
<%- when 'A100-80' -%>
"--partition=accel",
"--gres=gpu:a100:<%= ec_gpus.to_i %>",
"--exclude=gpu-[1-2,13]",
<%- when 'MIG' -%>
"--partition=mig",
"-G", "<%= ec_gpus.to_i %>",
<%- else -%>
"--partition=accel",
"-G", "<%= ec_gpus.to_i %>",
<%- end -%>
<%- else -%>
"--partition=normal",
<%- end -%>
<%- if not ec_mem.blank? -%>
"--mem", "<%= ec_mem.to_i %>G"
<%- end -%>
]