-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.yml.erb
More file actions
67 lines (57 loc) · 1.65 KB
/
form.yml.erb
File metadata and controls
67 lines (57 loc) · 1.65 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
<%# Takes in user input for variable assignment to build the shell script. %>
<%-
reser_string = `scontrol --oneliner show reservations | tr ' ' '\n' | grep "ReservationName" | cut -f2 -d=`
reser_string = reser_string.strip
-%>
cluster: "tntech"
form:
- bc_account
<%- if not reser_string.empty? -%>
- reservation
<%- end -%>
- work_dir
- input
- output
- num_nodes
- num_tasks_per_node
- gbs_of_mem
attributes:
num_nodes:
widget: "number_field"
label: "Number of nodes"
help: |
Number of nodes (some partitions have limited amounts).
min: 1
max: 40
step: 1
num_tasks_per_node:
widget: "number_field"
label: "Number of tasks per node"
help: |
Number of Tasks/Processes per Node. Defaults to 1.
min: 1
max: 96
step: 1
gbs_of_mem:
widget: "number_field"
label: "Gigabytes (GB) of RAM"
help: |
Amount of Memory per node (limits change across nodes). Defaults to 2
min: 2
max: 890
step: 2
input:
widget: "text_field"
label: "Input File Name"
help: "Where the data is coming from (relative to the working directory field above). Example: benchmark.in"
output:
widget: "text_field"
label: "Output File Name"
help: "Where the results will be going to (relative to the working directory field above). Example: benchmark.out"
work_dir:
label: "Working Directory"
data-filepicker: true
cacheable: false
data-target-file-type: dirs # Valid values are: files, dirs, or both
value: <%= ENV['HOME'] %>
help: "Select your project directory; if that is your home directory, leave as is. </br>DO NOT LEAVE BLANK!"