Skip to content

Conversation

@jsquyres
Copy link
Member

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

See individual commit messages for details.

Noticed this while writing tests for opal_bitmap.c.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit fba0723)
Using C99-style syntax for a constant string array declaration rather
than a GNU extension for a variatice string array declaration.

Also enabled one more test case that was currently ignored because one
other test case was failing.  Commented out the failing test and
enabled the skipped test so that we get at least a little more
coverage.

Signed-off-by: Jeff Squyres <[email protected]>
(cherry picked from commit 51552c4)
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 19:18
@github-actions github-actions bot added this to the v6.0.0 milestone Dec 31, 2025
@hppritcha
Copy link
Member

ignoring borked up NVIDIA CI.

@hppritcha hppritcha merged commit 19a3aaf into open-mpi:v6.0.x Jan 3, 2026
15 of 17 checks passed
@jsquyres jsquyres deleted the pr/v6.0.x/minor-fixes branch January 3, 2026 23:45
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