Skip to content
Snippets Groups Projects
Commit d2b28739 authored by Jeff Ohrstrom's avatar Jeff Ohrstrom
Browse files

add owens-slurm cluster to begin migratio to slurm

parent 098ade1c
No related branches found
No related tags found
No related merge requests found
---
cluster: "owens"
cluster:
- "owens"
- "owens-slurm"
form:
- version
- bc_account
......@@ -41,9 +43,9 @@ attributes:
running in the background. This utilizes the GPU for hardware
accelerated 3D visualization. There are 160 of these nodes on Owens.
options:
- [ "any", "" ]
- [ "hugemem", ":hugemem" ]
- [ "vis", ":vis:gpus=1" ]
- "any"
- "hugemem"
- "vis"
version:
widget: select
label: "MATLAB version"
......
<%-
ppn = num_cores.blank? ? 28 : num_cores.to_i
if node_type == ':hugemem'
ppn = 48
end
ppn = num_cores.blank? ? 28 : num_cores.to_i
nodes = bc_num_slots.blank? ? 1 : bc_num_slots.to_i
torque_cluster = OodAppkit.clusters[cluster].job_config[:adapter] == 'torque'
case node_type
when "hugemem"
ppn = 48
partition = bc_num_slots.to_i > 1 ? "hugemem-parallel" : "hugemem"
slurm_args = [ "--nodes", "#{nodes}", "--ntasks-per-node", "#{ppn}", "--partition", partition ]
torque_args = "#{nodes}:ppn=#{ppn}:#{node_type}"
when "vis"
slurm_args = ["--nodes", "#{nodes}", "--ntasks-per-node", "#{ppn}", "--gpus-per-node", "1", "--gres", "vis" ]
torque_args = "#{nodes}:ppn=#{ppn}:#{node_type}:gpus=1"
else
slurm_args = ["--nodes", "#{nodes}", "--ntasks-per-node", "#{ppn}" ]
torque_args = "#{nodes}:ppn=#{ppn}"
end
%>
---
batch_connect:
template: vnc
script:
native:
<%- if torque_cluster %>
resources:
nodes: "<%= bc_num_slots.blank? ? "1" : bc_num_slots.to_i %>:ppn=<%= ppn %><%= node_type %>"
nodes: "<%= torque_args %>"
<%- else %>
<%- slurm_args.each do |arg| %>
- "<%= arg %>"
<%- end %>
<%- end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment