Are there are examples on what other folks have done? I see node_type
many times is done via the -C (contraint) option for Slurm. I suppose I can use all of the various GPU’s but my understanding of Slurm is --gres=gpu:1
is needed to request a GPU resources. I wasn’t sure if a -C <gpu_type>
yould be sufficient.
I see this example
script:
native:
- "-n"
- "<%= num_cores.blank? ? 6 : 6 * num_cores.to_i %>"
- "--gres=gpu:<%= num_cores.blank? ? 1 : num_cores.to_i %>"
Perhaps this is an option? Or what Duke has posted:
<%- if num_gpus.to_i >0 -%>
- "--gres"
- "gpu:<%= num_gpus.to_i %>"
<%- end -%>
<%- argarr.each do |arg| %>
- "<%= arg %>"
<%- end %>