Re: [slurm-users] How to get num_nodes in job_submit.lua

2018-11-03 Thread Chris Samuel
On Sunday, 4 November 2018 12:27:59 AM AEDT Ade Fewings wrote: > I think that, if specified, the ‘sbatch -N’ number comes through as > min_nodes (& max_nodes if relevant) in the job descriptor. That's correct, it does. For instance you're using Lua it's: job_desc.min_nodes job_desc.max_nodes -

Re: [slurm-users] How to get num_nodes in job_submit.lua

2018-11-03 Thread Ade Fewings
Hi I think that, if specified, the 'sbatch -N' number comes through as min_nodes (& max_nodes if relevant) in the job descriptor. ~~ Ade From: slurm-users On Behalf Of weijianwen Sent: 03 November 2018 12:53 To: slurm-users@lists.schedmd.com Subject: [slurm-users] How to get num_nodes in jo

[slurm-users] How to get num_nodes in job_submit.lua

2018-11-03 Thread weijianwen
Hi, We're using SLURM 17.11 and trying to control job submission from user via Lua plugins job_submit.lua. Number of nodes specified via "-N" option in SLURM job script is crucial for us, but I found no where to get it. According to job_descriptor defined in https://github.com/SchedMD/