Bug 7191 - Bring cpu_bind back.
Summary: Bring cpu_bind back.
Alias: None
Product: Slurm
Classification: Unclassified
Component: User Commands (show other bugs)
Version: 19.05.x
Hardware: Linux Linux
: --- 3 - Medium Impact
Assignee: Tim Wickberg
QA Contact: Brian Christiansen
Depends on:
Reported: 2019-06-06 11:50 MDT by Levi Morrison
Modified: 2019-07-09 16:05 MDT (History)
6 users (show)

See Also:
Site: BYU - Brigham Young University
Alineos Sites: ---
Bull/Atos Sites: ---
Confidential Site: ---
Cray Sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
OCF Sites: ---
SFW Sites: ---
SNIC sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed: 19.05.1
Target Release: ---
DevPrio: ---

Add --cpu_bind as an alias for --cpu-bind. (891 bytes, patch)
2019-06-07 06:02 MDT, Tim Wickberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Levi Morrison 2019-06-06 11:50:15 MDT
As mentioned on the mailing list, this breaks essentially all OpenMPI releases on Slurm 19.05:

Comment 1 Kilian Cavalotti 2019-06-06 11:54:19 MDT
Yes, please.
Comment 2 John Hanks 2019-06-06 11:58:37 MDT
+1 to revert this change.
Comment 3 Kaizaad 2019-06-06 13:13:37 MDT
Comment 6 hpc-admin 2019-06-07 02:41:02 MDT
This will impact our site as well. What was the rationale behind this decision?
Comment 7 Tim Wickberg 2019-06-07 06:02:39 MDT
Created attachment 10536 [details]
Add --cpu_bind as an alias for --cpu-bind.

The attached patch adds --cpu_bind back in as an alias of --cpu-bind for salloc/sbatch/srun.

Some variant of this patch - albeit with a warning message added in to note that --cpu-bind is the correct spelling - will be in 19.05.1 when released, and supported through the 19.05 release cycle.

As a few people have noted on the mailing list, we do encourage sites to use srun - ideally with PMI2 or PMIx - instead of mpiexec/mpirun, but we will work with OpenMPI to get this updated in their wrapper scripting.

- Tim
Comment 8 Levi Morrison 2019-06-07 08:07:27 MDT
As noted on the mailing list, this is already fixed in OpenMPI's master branch. Hopefully it can get backported and new releases made.

Thanks for the patch -- going to test this out now.
Comment 12 Tim Wickberg 2019-07-09 16:05:04 MDT
I've added --cpu_bind back in as an alias, this will be included with 19.05.1 when released, and is functionally identical to the patch attached here.

commit d5cf91857e2c14ebd7c70c2eb2d71af43945a297
Author:     Tim Wickberg <tim@schedmd.com>
AuthorDate: Tue Jul 9 13:08:53 2019 -0600

    srun - restore --cpu_bind as an alias for --cpu-bind.
    Needed to maintain compatibility with OpenMPI's mpirun/mpiexec
    launch commands.
    Bug 7191.