On Wed, 7 Oct 2015 12:50:53 AM g...@cines.fr wrote:

> #!/bin/bash
> #SBATCH --nodes=4              
> #SBATCH --ntasks=7            
> #SBATCH --ntasks-per-node=2 
[...]
> With slurm version 14.11.9, when the job is submitted with sbatch command we
> get :
> 
> SLURM_NTASKS=8
> SLURM_NPROCS=8
> SLURM_STEP_NUM_TASKS=8

I can replicate that problem here on both 14.11.9 and 14.03.11, and the manual 
page is pretty clear that SLURM_NTASKS should be 7 for this case.

       --ntasks-per-node=<ntasks>
              Request  that  ntasks be invoked on each node.  If used with the
              --ntasks option, the --ntasks option will  take  precedence  and
              the  --ntasks-per-node  will  be  treated  as a maximum count of
              tasks per node.  Meant to be used with the --nodes option.

Well spotted!

All the best,
Chris
-- 
 Christopher Samuel        Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: sam...@unimelb.edu.au Phone: +61 (0)3 903 55545
 http://www.vlsci.org.au/      http://twitter.com/vlsci

Reply via email to