-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubmit.yml.erb
47 lines (46 loc) · 1.46 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
# Job submission configuration file
#
---
<% n_gpus = csc_slurm_partition == "gpu" || csc_slurm_partition == "gputest" ? 1 : 0 %>
<% gres = [] %>
<% gres.push("nvme:#{csc_nvme}") if csc_nvme.to_i > 0 %>
<% gres.push("gpu:v100:#{n_gpus}") if n_gpus > 0 %>
#
# 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"
conn_params:
- jp_type
script:
# accounting_id: '<%# csc_slurm_account %>'
# queue_name: '<%# csc_slurm_partition %>'
native:
- '-c'
- '<%= csc_cores %>'
- '-t'
- '<%= csc_time %>'
- '--mem=<%= csc_memory %>G'
<% unless gres.empty? %>
- '--gres=<%= gres.join(",") -%>'
<% end %>
# 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:
# queue_name: "queue1"
# accounting_id: "account1"
# email_on_started: true
# native: # ... array of command line arguments ...