MPIX_Waitall_enqueue(3)
π MPIX_Waitall_enqueue β the tea β
okay so bestie, welcome to the MPIX_Waitall_enqueue(3) page, section 3 of the manual, living up in the MPI neighborhood π«Ά. This is the glow-up of a waitall that gets enqueued onto a GPU stream β specifically, one that's associated with the local stream. Yeah. Main character energy, honestly. π₯
β¨ NAME β¨
MPIX_Waitall_enqueue β enqueue a waitall operation to a GPU stream that is associated with the local stream π¦
β¨ SYNOPSIS β¨
int MPIX_Waitall_enqueue(int count, MPI_Request array_of_requests[],
MPI_Status *array_of_statuses)
β¨ INPUT PARAMETERS β¨
countβ lists length (a non-negative integer, no cap π )
β¨ INPUT/OUTPUT PARAMETERS β¨
array_of_requestsβ array of requests (handle)
β¨ OUTPUT PARAMETERS β¨
array_of_statusesβ array of status objects (Status)
π§΅ THREAD AND INTERRUPT SAFETY π§΅
So this routine is thread-safe, periodt. That means multiple threads can use it at the same time, and you do not need to bring your own thread locks. Slay. β¨
BUT β and this is the important bit, bestie β the routine is not interrupt safe. π Typically that's because it uses memory allocation routines likemalloc, or other non-MPICH runtime routines, and those cuties are themselves not interrupt-safe. It's giving "not my fault, blamemalloc".
π NOTES FOR FORTRAN π
Every MPI routine in Fortran (except for MPI_WTIME and MPI_WTICK, the two rebels π) gets an extra argument ierr tacked onto the end of the argument list. ierr is an integer and it means the exact same thing as the return value of the routine in C. iykyk.
In Fortran, MPI routines are subroutines, and you invoke them with the call statement. π
And also: all MPI objects (e.g., MPI_Datatype, MPI_Comm) are of type INTEGER in Fortran.
π ERRORS π
Every MPI routine (again, except MPI_Wtime and MPI_Wtick, the iconoclasts) returns an error value β C routines as the value of the function, and Fortran routines in the last argument.
Before that value comes back to you, the current MPI error handler gets called. By default, this error handler aborts the MPI job. π³ Dramatic but true.
You can swap the error handler out with:
MPI_Comm_set_errhandlerβ for communicatorsMPI_File_set_errhandlerβ for filesMPI_Win_set_errhandlerβ for RMA windows
The MPI-1 routine MPI_Errhandler_set may be used, but ngl its use is deprecated. π
And 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. So likeβ¦ bestie, no promises. π«Ά
Here's the full error-code lineup:
MPI_SUCCESSβ No error; MPI routine completed successfully. πMPI_ERR_COUNTβ Invalidcountargument. Count arguments must be non-negative; a count of zero is often valid. (Yes, zero counts. She said "often valid" and she meant it.)MPI_ERR_REQUESTβ InvalidMPI_Request. Either null or, in the case of aMPI_StartorMPI_Startall, not a persistent request. πMPI_ERR_OTHERβ Other error; useMPI_Error_stringto get more information about this error code. The catch-all. The "it's giving mystery" option. π₯
and that's the whole page, bestie!! π you ate this documentation fr fr β¨ no cap πΈ
signing off from the MPIX_Waitall_enqueue(3) page β dated 4/10/2026 (that's right, future girlie π
) β mwah, go enqueue something iconic ππ¦π
π¦ 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