[slurm-users] job_submit.lua script

Bjørn-Helge Mevik b.h.mevik at usit.uio.no
Thu Apr 12 01:58:37 MDT 2018


Christopher Samuel <chris at csamuel.org> writes:

> On 12/04/18 01:47, Bjørn-Helge Mevik wrote:
>
>> "sysadmin.caos" <sysadmin.caos at uab.cat> writes:
>>
>>> srun: error: slurm_job_submit: parameter error 65534 4294967294 1
>>
>> 4294967294 is the special value slurm.NO_VAL, meaning the parameter
>> was not specified.  It is for 32 bit parametres.  I guess (but
>> haven't double checked) that 65534 is slurm.NO_VAL16, meaning the
>> same for 16 bit parametres (there is also a slurm.NP_VAL64 for 64 bit
>> parametres).
>
> In our job submit filter I have this (it only modifies things we use):
>
>
>        -- If various job properties are unset, set them to the defaults
>        -- Unset properties appear as:
>        -- Tasks: 4294967294
>        -- Cores per task: 65534
> 	if ( 4294967294 == job_desc.num_tasks ) then
> 		job_desc.num_tasks = 1
> 	end
> 	if ( 65534 == job_desc.cpus_per_task ) then
> 		job_desc.cpus_per_task = 1
> 	end

After a couple of typos, I started using the symbolic names instead. :)
Like

   if job_desc.time_limit == slurm.NO_VAL then
      slurm.log_info("job from uid %d with missing time: Denying.",
                     job_desc.user_id)
      return 8000 -- Signal ESLURM_MISSING_TIME_LIMIT
   end

-- 
Cheers,
Bjørn-Helge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20180412/96c96aa1/attachment.sig>


More information about the slurm-users mailing list