This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.yml.erb
99 lines (87 loc) · 2.14 KB
/
form.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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
<%-
paths = []
paths << Pathname.new("/scratch/#{User.new.name}")
projects = User.new.groups.map(&:name).grep(/^hb-./)
paths.concat projects.map { |p| Pathname.new("/scratch/#{p}") }
-%>
---
cluster: "login1"
form:
- node_type
- num_gpus
- mode
- auto_modules_Jupyter-bundle
- num_hours
- num_cores
- memory
- start_folder
attributes:
mode:
widget: "radio"
value: "1"
options:
- ["Jupyter Lab", "1"]
- ["Jupyter Notebook", "0"]
auto_modules_Jupyter-bundle:
label: Jupyter-bundle Version
help: |
Select one of the Jupyter-bundle versions from the list.
default: false
node_type:
label: Node Type
help: |
Select the type of node you would like to use. For information on the different options, please see
[our wiki](https://wiki.hpc.rug.nl/habrok/introduction/cluster_description#compute_nodes)
widget: select
options:
- [ "Regular", "regular", data-hide-num-gpus: true]
- [ "Himem", "himem", data-hide-num-gpus: true ]
- [ "GPU (A100)", "gpua100" ]
- [ "GPU (V100)", "gpuv100", data-hide-num-gpus: true, data-set-num-gpus: 1 ]
- [ "GELIFES", "gelifes", data-hide-num-gpus: true ]
num_gpus:
label: Number of GPUs
help: |
Select the number of GPUs you would like to use.
widget: number_field
value: 1
min: 1
step: 1
max: 4
num_hours:
label: Number of hours
widget: 'number_field'
help: "Please give the maximum wall time in hours"
value: 2
min: 1
step: 1
max: 12
memory:
label: Memory
help: Amount of memory requested, in GB
widget: 'number_field'
value: 2
min: 1
step: 1
start_folder:
label: Notebook root folder
help: Where should the jupyter server start?
<%- if paths.blank? -%>
widget: text_field
<%- else -%>
widget: select
options:
<%- paths.each do |q| -%>
- [ "<%= q %>", "<%= q %>" ]
<%- end -%>
<%- end -%>
num_cores:
widget: number_field
label: Number of CPU cores
value: 1
id: 'num_cores'
help: |
Select the number of CPU cores.
min: 1
step: 1
max: 128