Skip to content

Conversation

pratikvn
Copy link
Member

Fixes an issue where it was expected that MPI_Comm is comparable to a pointer. But some implementations (like MPICH) just use a reference to an int and hence are not comparable to std::nullptr_t

@pratikvn pratikvn added the is:bugfix This fixes a bug label Feb 28, 2025
@pratikvn pratikvn requested a review from MarcelKoch February 28, 2025 16:52
@pratikvn pratikvn self-assigned this Feb 28, 2025
@ginkgo-bot ginkgo-bot added the mod:core This is related to the core module. label Feb 28, 2025
@pratikvn
Copy link
Member Author

I am actually not sure why the first if check is needed (in is_identical and in is_congruent. Maybe @MarcelKoch can elaborate on this ?

@pratikvn pratikvn changed the title WIP: MPI_Comm cannot be expected to be pointer MPI_Comm cannot expected to be a pointer Mar 2, 2025
@yhmtsai
Copy link
Member

yhmtsai commented Mar 3, 2025

what is the empty state of MPICH? 0 here?

@pratikvn
Copy link
Member Author

pratikvn commented Mar 4, 2025

@yhmtsai , yes, empty state is NULL, or 0.

@pratikvn pratikvn added 1:ST:run-full-test 1:ST:no-changelog-entry Skip the wiki check for changelog update labels Mar 4, 2025
Copy link
Member

@yhmtsai yhmtsai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some typos are caught by spell-check. could you also change those?

@pratikvn pratikvn added the 1:ST:ready-to-merge This PR is ready to merge. label Mar 5, 2025
@pratikvn pratikvn merged commit 936f87c into develop Mar 5, 2025
9 of 11 checks passed
@pratikvn pratikvn deleted the fix/mpi-bug branch March 5, 2025 17:43
Copy link

sonarqubecloud bot commented Mar 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1:ST:no-changelog-entry Skip the wiki check for changelog update 1:ST:ready-to-merge This PR is ready to merge. 1:ST:run-full-test is:bugfix This fixes a bug mod:core This is related to the core module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants