I’m trying to apply a GPU with Slurm using native attributes. It runs but the GPUs aren’t being reserved as expected. How can I see the actual sbatch command that is running to know what is going on? My actual submit.yml.erb file is given below:
batch_connect:
template: "basic"
<%-
slurm_args = if gpu_switch == 1
["--gpus-per-node", "1", "--gres", "gpu:1" ]
else
[]
end
-%>
script:
native:
<%- slurm_args.each do |arg| %>
- "<%= arg %>"
<%- end %>