Skip to content

mpif-h: fix request_get_status when MPI_STATUS_IGNORE is passed#13731

Open
janjust wants to merge 1 commit intoopen-mpi:mainfrom
janjust:fix/mpif-h-request-get-status
Open

mpif-h: fix request_get_status when MPI_STATUS_IGNORE is passed#13731
janjust wants to merge 1 commit intoopen-mpi:mainfrom
janjust:fix/mpif-h-request-get-status

Conversation

@janjust
Copy link
Contributor

@janjust janjust commented Feb 13, 2026

The Fortran mpif-h binding for MPI_Request_get_status incorrectly returned flag=false when MPI_STATUS_IGNORE was passed, without ever checking request completion. Always call PMPI_Request_get_status to get the correct flag value, and only conditionally copy the status back.

This is the mpif-h counterpart to 95e4599 which fixed the same bug in the use-mpi-f08 .c.in template.

Related to issue #13671

The Fortran mpif-h binding for MPI_Request_get_status incorrectly
returned flag=false when MPI_STATUS_IGNORE was passed, without
ever checking request completion. Always call PMPI_Request_get_status
to get the correct flag value, and only conditionally copy the
status back.

This is the mpif-h counterpart to 95e4599 which fixed the same
bug in the use-mpi-f08 .c.in template.

Related to issue open-mpi#13671

Signed-off-by: Tomislav Janjusic <tomislavj@nvidia.com>
Co-authored-by: Howard Pritchard <howardp@lanl.gov>
@janjust
Copy link
Contributor Author

janjust commented Feb 13, 2026

@hppritcha for some reason this fix existed on the v5.0.x branch but not on main , v6.0.x

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.

2 participants