Hi all,

there seems to be a  discrepancy in the SLURM_NTASKS values depending on the 
job type.

For example, let’s say the job requests 5 tasks (-n 5), is submitted with 
sbatch, then its job step uses only 1 task (e.g. srun -n 1). In that case 
you’ll see following values (with every launcher):

SLURM_NTASKS=5
SLURM_STEP_NUM_TASKS=1

Exactly what one would expect.
When running the same scenario but with salloc instead of sbatch, you’ll get 
(with srun, OpenMPI’s mpirun but not with IntelMPI’s mpirun):

SLURM_NTASKS=1
SLURM_STEP_NUM_TASKS=1

Is that the expected behaviour or a bug?

Kind regards,
Lech



Reply via email to