In the absence of other directives, slurm tries to use the minimum number of 
nodes.

Instead of -n16, try -N 2
That tells slurm to use two nodes.

Here's a demo case 

srun -l -N2 --tasks-per-node=2 hostname
1: trek0
0: trek0
2: trek1
3: trek1



-----Original Message-----
From: Magnus Jonsson [mailto:[email protected]] 
Sent: Wednesday, February 19, 2014 1:28 AM
To: slurm-dev
Subject: [slurm-dev] --exclusive together with --ntasks-per-node not working as 
expected.

Hi!

We have a user that submitted a job that did not start as expected.

He was using --exclusive together with --ntasks-per-node but ended up 
with all task on one node anyway.

----8<----
#SBATCH -n 16
#SBATCH --exclusive
#SBATCH --ntasks-per-node=8
----8<----

See the attached files for more information about how the job was submitted.

We are currently running version 2.6.3.

Best regards,
Magnus

-- 
Magnus Jonsson, Developer, HPC2N, UmeƄ Universitet

Reply via email to