Skip to content

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

Open
janjust wants to merge 1 commit intoopen-mpi:v4.1.xfrom
janjust:fix/v4.1.x-mpif-h-request-get-status
Open

mpif-h: fix request_get_status when MPI_STATUS_IGNORE is passed#13733
janjust wants to merge 1 commit intoopen-mpi:v4.1.xfrom
janjust:fix/v4.1.x-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

(cherry picked from commit fb77662)

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>
(cherry picked from commit fb77662)
@janjust janjust requested a review from hppritcha February 13, 2026 21:37
@github-actions github-actions bot added this to the v4.1.10 milestone Feb 13, 2026
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