Repository navigation
MPI: hash MPIMemorySpace without the raw communicator handle - #789
Open
AnnaLena77 wants to merge 1 commit into
Open
AnnaLena77 wants to merge 1 commit into
AnnaLena77 wants to merge 1 commit into
Conversation
The hash included space.comm.val. In MPICH that is a small integer, equal on
every rank; in Open MPI it is a pointer, different in every process. The
uniformity check hashes a Vector{MemorySpace} on each rank and compares, so
ranks that agreed reported 'Non-uniform value' (19 failures at 2 ranks x 4
threads and 47 at 2 x 2 on the Fulda cluster, on unchanged master). Leave the
handle out: == still distinguishes communicators and a coarser hash is allowed.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hash(::MPIMemorySpace)includesspace.comm.val. In MPICH that value is a small integer that is equal on every rank; in Open MPI it is a pointer and differs in every process. The uniformity check hashes aVector{MemorySpace}on each rank and compares the results, so ranks that agree reported "Non-uniform value".On the Fulda cluster, unchanged master with Open MPI gave 19 such failures at 2 ranks x 4 threads and 47 at 2 x 2 in
test/mpi. With this change there are none.The fix leaves the handle out of the hash.
==still distinguishes communicators, and a coarser hash is allowed.The change is 5 lines in
ext/MPIExt.jl. I have not added a test: the failure only appears with an MPI implementation whose communicator handles differ between processes, so the existing MPI suite under Open MPI is the check.AI disclosure: I prepared this change with the help of Claude (Anthropic) and reviewed it myself.
🤖 Generated with Claude Code