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

weijianwen weijianwen at sjtu.edu.cn
Sat Nov 3 06:53:21 MDT 2018


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/slurm/blob/slurm-17.11/slurm/slurm.h.in , in contrast to num_tasks, 'num_nodes' is not a member of job_descriptor structure. I tried job_desc.num_nodes in job_submit.lua, then it turns out be nil.

	I wonder is 'num_nodes' the correct name to get the requested number of nodes. And is any way to get number of nodes in job_submit.lua?

Thank you!

Jianwen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20181103/9e945eb1/attachment.html>


More information about the slurm-users mailing list