Christopher Samuel writes:
> On 12/04/18 01:47, Bjørn-Helge Mevik wrote:
>
>> "sysadmin.caos" 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
signature.asc
Description: PGP signature