<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
Some days ago, I posted a question about a job_submit.lua I was
writing to limit "srun" to only one node and one core. My script was
this:<br>
<blockquote><tt>function slurm_job_submit(job_desc, part_list,
submit_uid)</tt><br>
<tt> local partition = "interactive"</tt><br>
<tt> if ((job_desc.script == nil or job_desc.script == '')
and job_desc.partition ~= partition) then</tt><br>
<tt> slurm.log_info("slurm_job_submit: interactive
job submitted by user_id:%d to partition:%s rejected",
job_desc.user_id, job_desc.partition)</tt><br>
<tt> return slurm.FAILURE</tt><br>
<tt> end</tt><br>
<tt> local max = 1</tt><br>
<br>
<tt> if (job_desc.cpus_per_task > max or
job_desc.max_cpus > max or job_desc.max_nodes > max) then</tt><br>
<tt> slurm.log_info("slurm_job_submit: error de
parametros %s %s %u", job_desc.cpus_per_task, job_desc.max_cpus,
job_desc.max_nodes)</tt><br>
<tt> return slurm.FAILURE</tt><br>
<tt> end</tt><br>
<br>
<tt> return slurm.SUCCESS</tt><br>
<tt>end</tt><br>
<br>
</blockquote>
However, this script is not working as I desire because logged value
for <tt><tt></tt>job_desc.max_cpus r</tt><tt>eturn a value too big.
I get "4294967294" for job_desc.max_cpus and "1" for
job_desc.max_nodes...<br>
<br>
<br>
Thanks.<br>
</tt>
</body>
</html>