-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpp to MPI type mapping improvements #3495
Open
schnellerhase
wants to merge
36
commits into
FEniCS:main
Choose a base branch
from
schnellerhase:mpi_types
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
55df724
Switch to gtype trait based mpi type dispatching
schnellerhase db6ba65
Add mpi type mapping for std::int64_t
schnellerhase b926fbf
Add mpi type mapping for std::int32_t
schnellerhase 2ba98d8
Missing double cases
schnellerhase 8d64f01
Add documentation
schnellerhase d492e11
Tidy and fix
schnellerhase 4183a15
Some more
schnellerhase ec943ae
More fixes
schnellerhase 0cbc972
Fix order
schnellerhase 7094daa
Simplify
schnellerhase 061caeb
Revert
schnellerhase a36535e
Add default NULL type
schnellerhase d56f991
Sanity check static assert
schnellerhase 6a3e2d7
Fancy void_t fix?
schnellerhase b58e41a
Wrong position
schnellerhase 831a3dc
Switch to non width types
schnellerhase 07488b8
Revert type trait tickery and document odd behavior
schnellerhase da98370
Add char types
schnellerhase 1cf84d3
Doc
schnellerhase e838edd
Doc for macros
schnellerhase d0888ab
Enabel preprocessing for doxygen
schnellerhase 32e475c
Merge branch 'main' into mpi_types
schnellerhase 1452cf7
Reactivate fixed with types
schnellerhase d3260e4
one more
schnellerhase 5057409
Type size dependent overloading
schnellerhase 858f934
Another
schnellerhase 59b6de0
Try wordsize check
schnellerhase 609e0ce
combine checks
schnellerhase 1c1f6eb
Give up, make mpi type explicit for Kahip and remove general support …
schnellerhase aad8099
typo
schnellerhase 15c61f4
Add KaHIP type comment
schnellerhase f3390d4
typos
schnellerhase 133620c
Remove maps for char and bool
schnellerhase cc44381
Merge branch 'main' into mpi_types
schnellerhase b59c449
Merge branch 'main' into mpi_types
schnellerhase 2096c33
Merge branch 'main' into mpi_types
schnellerhase File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced that
dolfinx::MPI::mpi_t<std::int32_t>
adds anything overMPI_INT32_T
. The latter is simpler.dolfinx::MPI::mpi_t
is helpful where we have templated over the type being communicated.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not the perfect interface for sure, but it allows us to stick to one type system in the code base.
We could also go for something like
dolfinx::MPI::mpi_t<sendsizes::value_type>
, which removes the possibility of a type mismatch, but increases code complexity for the caller.