MPIWait
MPI_Wait is a blocking routine in the Message Passing Interface (MPI) used to wait for the completion of a single non-blocking operation. It takes a pointer to an MPI_Request and an MPI_Status, and returns when the referenced operation has completed.
The request argument is typically obtained from non-blocking calls such as MPI_Isend or MPI_Irecv, or from persistent
After MPI_Wait completes, the behavior of the request handle depends on the type of request. For ordinary
MPI_Wait is commonly used to synchronize a computation with a non-blocking communication operation, enabling overlap of
Return values indicate success or error. The function returns MPI_SUCCESS on success; on error, an MPI error