Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


On November XX Slurm on Atos AD complex was updated with Slurm to version 22.05 and the same version of Slurm was installed on AC complex on  .. Since AD has been default cluster (with hpc-login and hpc-batch are being aliases for nodes on AD ) since 28 Nov complex.

The same version of Slurm 22.05 was installed on AC complex on  .


The One change to in the new Slurm version impacts all Slurm batch jobs setting the number of OMP threads using threads with directive:

Code Block
languagebash
#SBATCH --cpus-per-task

...

Panel
titleSlurm 22.05 release note:

Srun will no longer read in SLURM_CPUS_PER_TASK. This means you will implicitly have to specify --cpus-per-task on your srun calls, or set the new SRUN_CPUS_PER_TASK env var to accomplish the same thing.

Consequently, users Users should adjust the jobs script by exporting SRUN_CPUS_PER_TASK environmental variable manually:

Code Block
languagebash
export SRUN_CPUS_PER_TASK=${SLURM_CPUS_PER_TASK:-1}

or alternatively by specifying number of OMP threads as an option with run command:

Code Block
languagebash
srun --cpus-per-task


To reduce user impact and made job scripts compatible with the new Slurm, HPC support team has set SRUN_CPUS_PER_TASK environmental variable :

Code Block
languagebash
export SRUN_CPUS_PER_TASK=${SLURM_CPUS_PER_TASK:-1}

to in the user profile. However, user profile is automatically loaded only in batch jobs (jobs with first line):

Code Block
languagebash
#!/bin/bash

...