[v6.0.x] Add missing functions to Fortran use_mpi interface - #14304
Merged
Conversation
MPI_Status_set_elements was not callable, and many PMPI versions were
missing entirely.
The MPI_{Comm/Session}_attach_buffer_FTS functions were also not
generated.
Signed-off-by: Yussur Mustafa Oraji <yussur.oraji@tu-darmstadt.de>
(cherry picked from commit dd8326a)
hppritcha
approved these changes
Aug 11, 2026
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.
Backport of #14219 to
v6.0.x.There's currently two closely related bugs.
The PMPI define for
MPI_Status_set_elementsis defined inpmpi-ignore-tkr-interfaces.hbut the actual interface is inmpi-ignore-tkr-interfaces-generated.h.Then, in
mpi-ignore-tkr.F90both are included in that order. This leads to the preprocessor overwritingMPI_Status_set_elementswith the PMPI version, and the normal one is omitted entirely.This is fixed by the first commit which just removes the superfluous define.
Then, for the functions in
mpi-ignore-tkr-interfaces-generated.h, no PMPI interface versions are being generated at the moment, since the define in that header is unused.In the second commit, I include that header again in
mpi-ignore-tkr.F90with the define to ensure the PMPI interfaces are in the final output.I'm a bit unsure about the second commit, would be grateful for a deeper look.