-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathform.yml.erb
More file actions
86 lines (77 loc) · 2.19 KB
/
Copy pathform.yml.erb
File metadata and controls
86 lines (77 loc) · 2.19 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<%-
extend AccountCache
def get_available_accounts()
# dynamic_accounts is a nested array looking like
# [ ["alice","alice",{}], ["bob","bob",{}] ]
accounts = dynamic_accounts.map(&:first)
accounts.delete("noalloc")
accounts
end
%>
---
cluster: "delta"
form:
- bc_account
- bc_partition
- bc_duration
- bc_reservation
- bc_num_slots
- bc_num_memory
- bc_num_gpus
# - bc_email_on_started
- working_dir
attributes:
bc_account:
label: "Name of account"
widget: "select"
required: true
help: "Account selected must match job type (CPU or GPU)."
options:
<%- get_available_accounts().each do |account| %>
- ["<%= account %>", "<%= account %>"]
<%- end %>
bc_reservation:
label: "Name of reservation (leave empty if none)"
widget: "text_field"
value: ""
bc_partition:
label: "Partition"
widget: "select"
value: "cpu-interactive"
help: "Interactive partitions are limited to 30 minutes."
options:
- ["cpu-interactive","cpu-interactive"]
- ["gpuH200x8-interactive","gpuH200x8-interactive"]
- ["gpuA100x4-interactive","gpuA100x4-interactive"]
- ["gpuA40x4-interactive","gpuA40x4-interactive"]
- ["cpu","cpu"]
- ["gpuH200x8","gpuH200x8"]
- ["gpuA100x4","gpuA100x4"]
- ["gpuA40x4","gpuA40x4"]
bc_num_slots:
label: "Number of CPUs"
widget: "number_field"
required: true
min: "1"
bc_num_memory:
label: "Amount of RAM"
widget: "text_field"
pattern: "[0-9]+[MG]{1}"
help: "Use Slurm format, e.g. 4096M, 10G. If left blank, 1000 MB will be allocated per CPU core requested. A minimum of 2GB is required for each job and lower values will be substituted before submission."
bc_num_gpus:
label: "Number of GPUs"
widget: "number_field"
# max: "4"
min: "0"
bc_duration:
label: "Duration of job"
widget: "text_field"
required: true
value: "1:00:00"
help: "Slurm format: DD-HH:MM:SS"
working_dir:
label: "Working Directory"
data-filepicker: true
data-target-file-type: dirs # Valid values are: files, dirs, or both
readonly: false
help: "Select your project directory; defaults to $HOME"