-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubmit.yml.erb
40 lines (38 loc) · 1.3 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
39
40
<%-
if ! advanced_job_options.blank? then
require "/share/support/public/ood/ruby/hostspecs.rb"
host_specs = getHostSpecs()
libpath = host_specs[:libpath]
require libpath+"/process_advanced_options.rb"
options = processAdvancedOptions(advanced_job_options)
end
-%>
---
batch_connect:
template: vnc
script:
native: [ "--cpus-per-task", "<%= bc_num_cores.to_i %>",
"--mem-per-cpu", "<%= bc_amt_mem.to_i %>G" ,
"--nodes", "<%= bc_num_slots.to_i %>",
"--partition", "<%= partitions.strip() %>" ,
<% if num_gpu.to_i > 0 then %>
"--gres", "gpu:<%= num_gpu.to_i %>" ,
<% end %>
<% if ! reservation.blank? then %>
"--reservation", "<%= reservation.strip() %>",
<% end %>
<% if ! bc_account.blank? then %>
"--account", "<%= bc_account.strip() %>",
<% end %>
<%-
if ! advanced_job_options.blank? then
options.each do |key, value|
-%>
"<%= key.strip() %>", "<%= value.strip() %>",
<%-
end
end
-%>
"--qos", "interactive",
"--job-name", "ood-matlab"
]