MPIX_Request_is_complete(3)
π NAME π
MPIX_Request_is_complete β [short description] β¨
okay so hi bestie, welcome to the MPI manual, this one's a little cutie from the MPI section (yes, section 3, the library-calls girlies) π
πΈ SYNOPSIS πΈ
int MPIX_Request_is_complete(MPI_Request request)
that's it. that's the whole vibe. one argument, one return, slay π«Ά
π INPUT PARAMETERS π
requestβ communication request (handle) π¦
like. hand me your request handle and I'll look at it. that's the whole deal.
β¨ THREAD AND INTERRUPT SAFETY β¨
good news first: this routine is thread-safe. like, genuinely. it can be used by multiple threads at the same time and you do not need to bring your own thread locks, no user-provided locking required, we're self-sufficient π
but β and I need you to hear me on this β it is not interrupt safe. π the reason is typically the use of memory allocation routines such as malloc, or other non-MPICH runtime routines that are themselves not interrupt-safe. so like. thread-safe? yes. interrupt-safe? absolutely not. two different things bestie, do not conflate them π
π NOTES FOR FORTRAN π
fortran girlies, this part is for you π
- Every MPI routine in Fortran (except for
MPI_WTIMEandMPI_WTICK) has one extra argument calledierrstuck on the end of the argument list. π ierris an integer, and it means exactly the same thing as the return value of the routine in C.- In Fortran, MPI routines are subroutines, and you invoke them with the
callstatement. - All MPI objects (e.g.
MPI_Datatype,MPI_Comm) are of typeINTEGERin Fortran. periodt. π
π₯ ERRORS π₯
okay so every MPI routine (except MPI_Wtime and MPI_Wtick) returns an error value β C routines hand it back as the value of the function, and Fortran routines put it in the last argument. π
but BEFORE that value comes back, the current MPI error handler gets called. and by default? that error handler aborts the MPI job. π not a vibe check you want to fail.
the error handler can be changed with:
MPI_Comm_set_errhandler(for communicators)MPI_File_set_errhandler(for files)MPI_Win_set_errhandler(for RMA windows)
the MPI-1 routine MPI_Errhandler_set may be used but its use is deprecated. π
the predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned instead. note that MPI does not guarantee that an MPI program can continue past an error; however, MPI implementations will attempt to continue whenever possible. π«
here's your error roster:
MPI_SUCCESSβ No error; MPI routine completed successfully. π₯³ iconic. ate.MPI_ERR_OTHERβ Other error; useMPI_Error_stringto get more information about this error code. π
fr fr, if you seeMPI_ERR_OTHERand you're just sitting there like ??? β go callMPI_Error_string. she will tell you what happened. that's her whole job. π«Ά
π SEE ALSO π
not me checking for a SEE ALSO sectionβ¦ there isn't one in this page bestie, so nothing to list. moving on β¨
and that's the whole page, no cap π§π
this gorgeous little number comes to you from the MPI manual, page MPIX_Request_is_complete(3), dated 4/10/2026 β she's fresh, she's fabulous, she's complete π
β¨πΈ
π¦ where this page comes from
- nixos 26.05: mpich 5.0.1
- ubuntu stonking: mpich-doc 5.0.1-9 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms