Re: [slurm-users] Help with developing a lua job submit script

2018-10-10 Thread Baker D . J .
: Slurm User Community List Subject: Re: [slurm-users] Help with developing a lua job submit script Hello David, for this use case we have two partitions - serial and parallel (the default). Our lua looks like: function slurm_job_submit(job_desc, part_list, submit_uid) -- As the default partition

Re: [slurm-users] Help with developing a lua job submit script

2018-10-10 Thread Roche Ewan
Hello David, for this use case we have two partitions - serial and parallel (the default). Our lua looks like: function slurm_job_submit(job_desc, part_list, submit_uid) -- As the default partition is set later by SLURM we need to set it here using the same logic if job_desc.partitio

Re: [slurm-users] Help with developing a lua job submit script

2018-10-09 Thread Marcin Stolarek
This should be quite easy.. if job_desc.min_cpus or job_desc.min_cpus < YOUR_NUMBER then job_desc.partition = "YourPartition" end Check slurm.h definition of job_descriptior and (small self advert but maybe helpful..) you can also check my blog post on job_submit/lua ( https://funinit.wordpress.