Yep that's how we do it, note that you need to specify Gres in three places:
in slurm.conf GresTypes=Mygres NodeName=.... Gres=Mygres and in gres.conf Name=Mygres Count=2 And when you submit a job, use sbatch --gres=Mygres On Wed, 2014-04-09 at 10:30 -0700, [email protected] wrote: > The simplest solution would probably be to define a generic resource > (GRES) of "jobs", two per node, and then in a job_submit plugin, set > every job to require one GRES of type "jobs" (at least that's what we > did on some Cray systems). More information here: > > http://slurm.schedmd.com/gres.html > http://slurm.schedmd.com/job_submit_plugins.html > > > Quoting "Ethier, Michael" <[email protected]>: > > > Hello, > > > > > > > > We have a user asking if there is a way to tell slurm to only schedule 2 > > jobs per node at any one time. Is there an easy way to do this ? > > > > > > > > Thanks, > > Mike >
