Skip to content

Commit 00f4ab8

Browse files
authored
remove unused nodes choice (#1)
1 parent 81395b4 commit 00f4ab8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

form.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ form:
55
- version
66
- auto_accounts
77
- bc_num_hours
8-
- bc_num_slots
98
- num_cores
109
- node_type
1110
- bc_email_on_started

submit.yml.erb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
err_msg = "You are not a member of the matlab group. Please email [email protected] to request access to MATLAB."
44
raise(StandardError, err_msg) unless CurrentUser.group_names.include?('matlab')
55

6-
nodes = 1
76
ppn = num_cores.blank? ? 96 : num_cores.to_i
87

98
case node_type
109
when "largemem"
11-
slurm_args = [ "--nodes", "#{nodes}", "--ntasks-per-node", "#{ppn}", "--partition", "hugemem" ]
10+
slurm_args = [ "--ntasks-per-node", "#{ppn}", "--partition", "hugemem" ]
1211
when "gpu"
13-
slurm_args = [ "--nodes", "#{nodes}", "--ntasks-per-node", "#{ppn}", "--gpus-per-node", "1" ]
12+
slurm_args = [ "--ntasks-per-node", "#{ppn}", "--gpus-per-node", "1" ]
1413
else
15-
slurm_args = [ "--nodes", "#{nodes}", "--ntasks-per-node", "#{ppn}" ]
14+
slurm_args = [ "--ntasks-per-node", "#{ppn}" ]
1615
end
1716
%>
1817
---

0 commit comments

Comments
 (0)