Skip to content

Conversation

@Gonzalosilvalde
Copy link
Contributor

The collective_buffering hint had inverted logic due to incorrect use of strncmp. When set to 'true', it would disable collective buffering, and when set to 'false' it would enable it.

The bug was in the strncmp comparison using sizeof("true") instead of the correct string length, combined with inverted conditional logic. Fixed by using strncasecmp with correct string length (5 for "false") and proper return value check (== 0).

Fixes #13377 and tested with the reproducer of the same issue (https://gist.github.com/carns/57b1e124460f3b2371d5219c747d0f10)

The collective_buffering hint had inverted logic due to incorrect
use of strncmp. When set to 'true', it would disable collective
buffering, and when set to 'false' it would enable it.

Signed-off-by: Gonzalosilvalde <[email protected]>
@hppritcha
Copy link
Member

@edgargabriel could you review this and see if its good see which branches this needs to be cherry-picked back to?

@hppritcha
Copy link
Member

seems like ZE CI had a glitch - rerunning

@hppritcha hppritcha merged commit 4bc0f8a into open-mpi:main Jan 30, 2026
17 of 18 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.

ompio collective_buffering MPI_Info hint does not work correctly

3 participants