Skip to content

Commit

Permalink
remove unused nodes choice (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Nov 13, 2024
1 parent 81395b4 commit 00f4ab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ form:
- version
- auto_accounts
- bc_num_hours
- bc_num_slots
- num_cores
- node_type
- bc_email_on_started
Expand Down
7 changes: 3 additions & 4 deletions submit.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
err_msg = "You are not a member of the matlab group. Please email [email protected] to request access to MATLAB."
raise(StandardError, err_msg) unless CurrentUser.group_names.include?('matlab')

nodes = 1
ppn = num_cores.blank? ? 96 : num_cores.to_i

case node_type
when "largemem"
slurm_args = [ "--nodes", "#{nodes}", "--ntasks-per-node", "#{ppn}", "--partition", "hugemem" ]
slurm_args = [ "--ntasks-per-node", "#{ppn}", "--partition", "hugemem" ]
when "gpu"
slurm_args = [ "--nodes", "#{nodes}", "--ntasks-per-node", "#{ppn}", "--gpus-per-node", "1" ]
slurm_args = [ "--ntasks-per-node", "#{ppn}", "--gpus-per-node", "1" ]
else
slurm_args = [ "--nodes", "#{nodes}", "--ntasks-per-node", "#{ppn}" ]
slurm_args = [ "--ntasks-per-node", "#{ppn}" ]
end
%>
---
Expand Down

0 comments on commit 00f4ab8

Please sign in to comment.