: 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
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
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.