There are MinNodes and MaxNodes settings that can be defined for each partition 
listed in slurm.conf [1]. Set both to 1 and you should end up with the non-MPI 
partitions you want.

[1] https://slurm.schedmd.com/slurm.conf.html


________________________________
From: slurm-users <slurm-users-boun...@lists.schedmd.com> on behalf of 
Holtgrewe, Manuel <manuel.holtgr...@bihealth.de>
Sent: Friday, May 8, 2020 4:26 AM
To: slurm-users@lists.schedmd.com <slurm-users@lists.schedmd.com>
Subject: [slurm-users] Defining a default --nodes=1

Dear all,

we're running a cluster where the large majority of jobs will use 
multi-threading and no message passing. Sometimes CPU>1 jobs are scheduled to 
run on more than one node (which would be fine for MPI jobs of course...)

Is it possible to automatically set "--nodes=1" for all jobs outside of the 
"mpi" partition (that we setup for message passing jobs)?

Thank you,
Manuel

--
Dr. Manuel Holtgrewe, Dipl.-Inform.
Bioinformatician
Core Unit Bioinformatics – CUBI
Berlin Institute of Health / Max Delbrück Center for Molecular Medicine in the 
Helmholtz Association / Charité – Universitätsmedizin Berlin

Visiting Address: Invalidenstr. 80, 3rd Floor, Room 03 028, 10117 Berlin
Postal Address: Chariteplatz 1, 10117 Berlin

E-Mail: manuel.holtgr...@bihealth.de
Phone: +49 30 450 543 607
Fax: +49 30 450 7 543 901
Web: cubi.bihealth.org  www.bihealth.org  www.mdc-berlin.de  www.charite.de

Reply via email to