Hello, we have just upgraded our configuration from SLURM 2.6.9 to SLURM 14.11.9.
We are facing a new issue with jobs using --ntasks. The following variables SLURM_NTASKS , SLURM_NPROCS and SLURM_STEP_NUM_TASKS are set with wrong values when the job is submitted using sbatch command : s l urm script exemple : #!/bin/bash #SBATCH --nodes=4 #SBATCH --ntasks=7 #SBATCH --ntasks-per-node=2 ... In a "normal" case slurm 2.6.9 we get : SLURM_NTASKS=7 SLURM_NPROCS=7 SLURM_STEP_NUM_TASKS=7 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 With slurm version 14.11.9 , when the job is submitted with s alloc command we get : SLURM_NTASKS=7 SLURM_NPROCS=7 SLURM_STEP_NUM_TASKS=7 The only way we found to workaround the problem is to set these tree variables "by hand" inside the slurm script as the first command before job steps : #!/bin/bash #SBATCH --nodes=4 #SBATCH --ntasks=7 #SBATCH --ntasks-per-node=2 ... SLURM_NTASKS=7 SLURM_NPROCS=7 SLURM_STEP_NUM_TASKS=7 Any idea about this problem ? How can we solve it ? Best Regards, Gerard Gil Departement Calcul Intensif Centre Informatique National de l'Enseignement Superieur 950, rue de Saint Priest 34097 Montpellier CEDEX 5 FRANCE tel : (334) 67 14 14 14 fax : (334) 67 52 37 63 web : http://www.cines.fr
