-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubmit.yml.erb
36 lines (35 loc) · 1014 Bytes
/
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
# 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:
template: "basic"
# set_host: "host=$(hostname -s)"
conn_params:
- ondemand_host
#
# Configure the job script submission parameters for the batch job here
# @see http://www.rubydoc.info/gems/ood_core/OodCore/Job/Script
#
script:
copy_environment: true
accounting_id: "<%= bc_account %>"
queue_name: "<%= bc_partition %>"
email_on_started: <%= bc_email_on_started %>
native:
- "-N 1"
- "-n <%= bc_num_cores.blank? ? "1" : bc_num_cores %>"
<%- unless bc_num_memory.blank? %>
- "--mem=<%= bc_num_memory %>"
<%- end -%>
- "-t"
- "<%= bc_duration %>"
<%- unless bc_num_gpus.blank? or bc_num_gpus.to_i == 0 -%>
- "--gres=gpu:<%= bc_num_gpus %>"
<%- end -%>
<%- unless bc_reservation.blank? -%>
- "--reservation=<%= bc_reservation %>"
<%- end -%>