Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no SLURM_CPUS_PER_TASK for Slurm version 22.05 #179

Open
Rykath opened this issue Feb 18, 2023 · 0 comments
Open

no SLURM_CPUS_PER_TASK for Slurm version 22.05 #179

Rykath opened this issue Feb 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Rykath
Copy link
Collaborator

Rykath commented Feb 18, 2023

From the Marconi HPC User Support:

“srun will no longer read in SLURM_CPUS_PER_TASK. This means you will
explicitly 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.”

Such modification affects hybrid (MPI/OpenMP) jobs launched with srun, since
the consequent mapping of the multithreaded tasks will result in an
overallocation of the cpus. As reported in the slurm Highlights, you can

  • define the SRUN_CPUS_PER_TASK env var in your scripts:

export SRUN_CPUS_PER_TASK=$SLURM_CPUS_PER_TASK
srun your_exe

  • or your can repeat the --cpus-per-task directive as option of srun:

srun --cpus-per-task=$SLURM_CPUS_PER_TASK your_exe

This will likely break the cpus option for the Slurm-Runner.

@Rykath Rykath added the bug Something isn't working label Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant