Skip to content

Conversation

@jsquyres
Copy link
Member

SLURM 19 discontinued the use of --cpu_bind (and changed it to
--cpu-bind). There's no easy way to test at run time which one is
accepted, so set the environment variable SLURM_CPU_BIND to "none",
which should do the same thing as the srun CLI parameter.

Signed-off-by: Jordan Hayes [email protected]
Signed-off-by: Jeff Squyres [email protected]
(cherry picked from commit 7dad740)

FYI @jdhayes

Release managers: I marked this as "NEWS" because this commit fixes the SLURM plm (for mpirun-based launching, not native launch/srun-based launching) with regard to SLURM 19, because SLURM 19 deleted a CLI option that previous versions of Open MPI were using. This PR works around the issue by using a SLURM env var instead of the problematic CLI option. This env var works with really old versions of SLURM (we checked back to SLURM 14) up to SLURM 19.

SLURM 19 discontinued the use of --cpu_bind (and changed it to
--cpu-bind).  There's no easy way to test at run time which one is
accepted, so set the environment variable SLURM_CPU_BIND to "none",
which should do the same thing as the srun CLI parameter.

Signed-off-by: Jordan Hayes <[email protected]>
Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 7dad740)
@jsquyres jsquyres added this to the v3.1.5 milestone May 16, 2019
@jsquyres jsquyres requested a review from rhc54 May 16, 2019 16:21
@bwbarrett bwbarrett merged commit d448369 into open-mpi:v3.1.x Jun 4, 2019
@jsquyres jsquyres deleted the pr/v3.1.x/adjust-for-slurm-19-cli-options-change branch December 7, 2021 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants