Add the --exclusive option to srun for what you want. See man page for details:
http://slurm.schedmd.com/srun.html
Quoting Ed Blosch <[email protected]>:
Would the following be a typical way that someone would run a series of N job steps within a batch allocation of M cores? For example, 4 steps within an allocation of 2 cores. #! /bin/bash #SBATCH -n2 srun -n1 prog1 & srun -n1 prog2 & srun -n1 prog3 & srun -n1 prog4 & wait Do the 3rd and 4th job steps wait to start until the 1st and/or 2nd step is completed? Thanks
-- Morris "Moe" Jette CTO, SchedMD LLC Commercial Slurm Development and Support
