MPIO_Test(3)
π MPIO_Test β from the MPI-2 manual, bestie edition π
okay so. this is MPIO_Test(3) and it is literally the girl who checks if your nonblocking read or write is done yet. she doesn't wait around (that's her sister's job), she just peeks. and honestly? iconic behaviour.
β¨ NAME β¨
MPIO_Test β test the completion of a nonblocking read or write. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
#include "mpi.h"
int MPIO_Test(MPIO_Request *request, int *flag, MPI_Status *status)
like, that's the signature, copy it exactly bestie, do not freestyle. π
π INPUT PARAMETERS π
requestβ the request object (handle). this is your little ticket to the operation that's out there doing its thing. ποΈ
π OUTPUT PARAMETERS π
flagβ true if the operation completed (logical). so like, did it finish?flagwill tell you, fr fr. βstatusβ status object (Status). all the deets about what went down. π
π§ NOTES FOR FORTRAN π§
okay so if you're living that Fortran life, here's the tea. π
- every single MPI routine in Fortran β with exactly two exceptions, and those exceptions are
MPI_WTIMEandMPI_WTICKβ has an extra argument calledierrtacked onto the end of the argument list. not optional, she's always there. π ierris an integer, and it means the exact same thing as the return value of the routine in C. same energy, different language. π«- in Fortran, MPI routines are subroutines, and you invoke them with the
callstatement.callher by her name. π - all MPI objects (like
MPI_Datatype,MPI_Comm,MPI_File) are of typeINTEGERin Fortran. yes, all of them. no cap. π
π reminder: this page is all about testing completion, not waiting for it. don't get it twisted. π
and that's the page, bestie!! this little slice of MPI-2 goodness is dated 2/5/1998 β yes, she's a vintage queen and she's still serving π β and it lives in the MPIO_Test(3) section of your manual. go forth and test those requests. mwah. πβ¨π
π¦ where this page comes from
- debian bookworm: lam-mpidoc 7.1.4-7
- debian trixie: lam-mpidoc 7.1.4-7.2
- ubuntu jammy: lam-mpidoc 7.1.4-7
- ubuntu noble: lam-mpidoc 7.1.4-7.1build2
- ubuntu questing: lam-mpidoc 7.1.4-8
- ubuntu resolute: lam-mpidoc 7.1.4-8build1
- ubuntu stonking: lam-mpidoc 7.1.4-8build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms