We would like to use the sbatch --constraint option to specify the processor architecture within a single partition. However, we would like to have one of the two available options set by default. Is this possible in the Slurm configuration? Or do we need to develop a job submit plugin in order to do it?
Well, I got it somehow working with the job_submit.lua plugin, it was quite easy: function slurm_job_submit ( job_desc, part_list, submit_uid ) setmetatable (job_desc, job_req_meta) local part_rec = _build_part_table (part_list) if not job_desc.features and job_desc.partition=="parallel" then job_desc.features="sandybridge" end return 0 end Let me know though if there's a way to specify the default in some other way.
(In reply to Marco Passerini from comment #1) > Well, I got it somehow working with the job_submit.lua plugin, it was quite > easy: > > function slurm_job_submit ( job_desc, part_list, submit_uid ) > setmetatable (job_desc, job_req_meta) > local part_rec = _build_part_table (part_list) > > if not job_desc.features and job_desc.partition=="parallel" then > job_desc.features="sandybridge" > end > > return 0 > end > > > > Let me know though if there's a way to specify the default in some other way. That is your best solution. It is the same mechanism used by NASA Goddard for the same purpose.