-
Notifications
You must be signed in to change notification settings - Fork 0
/
submit.yml.erb
59 lines (56 loc) · 1.72 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Job submission configuration file
#
---
#
# Configure the content of the job script for the batch job here
# @see http://www.rubydoc.info/gems/ood_core/OodCore/BatchConnect/Template
#
batch_connect:
# We use the basic web server template for generating the job script
#
# @note Do not change this unless you know what you are doing!
template: "basic"
# You can override the command used to query the hostname of the compute node
# here
#
# @note It is **highly** recommended this be set in the global cluster
# configuration file so that all apps can take advantage of it by default
#
#set_host: "host=$(hostname -A | awk '{print $2}')"
#
# Configure the job script submission parameters for the batch job here
# @see http://www.rubydoc.info/gems/ood_core/OodCore/Job/Script
#
script:
native:
- "-N"
- "<%= bc_num_slots.blank? ? 1 : bc_num_slots.to_i %>"
<% if use_cgw.to_i == 1 %>
- "--partition=cgw-<%= cgw %>"
- "--account=cgw_<%= cgw.tr("-", "_") %>"
- "--nodelist=<%= cgw %>"
<% elsif ! bc_account.strip.empty? %>
- "--account=<%= bc_account.strip %>"
- "--partition=production"
<% else %>
- "--partition=production"
<% end %>
<% if use_cgw.to_i == 1 && cgw == "dougherty1" %>
- "--mem=90G"
- "--cpus-per-task=8"
<% elsif exclusive == "no" %>
- "--mem=<%= bc_mem.blank? ? 4 : bc_mem.to_i %>G"
- "--cpus-per-task=<%= bc_num_cores.blank? ? 1 : bc_num_cores.to_i %>"
<% else %>
- "--exclusive"
<% if exclusive == "119g" %>
- "--mem=119G"
<% elsif exclusive == "246g" %>
- "--mem=246G"
<% else %>
- "--mem=0"
<%end %>
<% end %>
<% if cpuarch != "any" %>
- "--constraint=<%= cpuarch %>"
<% end %>