I am trying to retrieve the number of requested GPUs in job_submit.lua
If the job is submitted with a --gres -flag, as in "sbatch
--gres=gpu:2...", I can get the
information in job_submit.lua via the variable 'job_desc.tres_per_node'.
But if the job is submitted with the --gpus -flag, as in "sbatch
--gpus=2", then 'job_desc.tres_per_node'
is nil.
How can I dig out the number of requested GPUs in job_submit.lua in the
latter case?
I am running Slurm 20.02.5.
Thanks in advance.
Niels Carl Hansen
Aarhus University, Denmark