Skip to content

Conversation

@jsquyres
Copy link
Member

This is a v5.0.x PR corresponding to main PR #13597.

Only one of the three commits on the main PR was relevant to the v5.0.x branch, so this PR only has a cherry pick of that one commit (7bbdb0a):


Inspired by some fixes in PMIx:

Fix some logic errors in opal_bitmap.c:opal_num_set_bits(): the parameter is supposed to be the number of bits, not number of elements. The fixes here are essentially the same as Matthew's, but with some stylistic changes.

It doesn't look like this function is invoked anywhere in the code base, which is why we hadn't previously noticed these issues.

That being said, if we have the code, it should be correct. This commit therefore also adds some tests for the
opal_bitmap_num_set_bits() function to "make check" to make sure that it's actually working properly.

(cherry picked from commit 7bbdb0a)

Inspired by some fixes in PMIx:

* From the @Matthew-Whitlock fix in
  openpmix/openpmix@47b6634
  (openpmix/openpmix#3670)
* From the @Matthew-Whitlock fix in
  openpmix/openpmix@08c22de
  (openpmix/openpmix#3709)
* From the @Matthew-Whitlock fix in
  openpmix/openpmix@36df200
  (openpmix/openpmix#3732)

Fix some logic errors in opal_bitmap.c:opal_num_set_bits(): the
parameter is supposed to be the number of bits, not number of
elements.  The fixes here are essentially the same as Matthew's, but
with some stylistic changes.

It doesn't look like this function is invoked anywhere in the code
base, which is why we hadn't previously noticed these issues.

That being said, if we have the code, it should be correct.  This
commit therefore also adds some tests for the
opal_bitmap_num_set_bits() function to "make check" to make sure that
it's actually working properly.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 7bbdb0a)
@jsquyres jsquyres requested a review from bosilca December 31, 2025 20:13
@github-actions github-actions bot added this to the v5.0.10 milestone Dec 31, 2025
@janjust janjust merged commit 5fb2386 into open-mpi:v5.0.x Jan 14, 2026
17 of 19 checks passed
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.

3 participants