MPI_Pready_list(3)
β¨ MPI_Pready_list(3) β¨ β it's giving "yes bestie, these portions are READY" π
okay so real talk, this is a page from the MPI manual (section 3, the library-call girlies π), and today we're talking about MPI_Pready_list.
π NAME π
MPI_Pready_list β Indicates that a list of portions of the send buffer in a partitioned
(that's the actual sentence, she's a little unfinished, we love her anyway π«Ά)
πΈ SYNOPSIS πΈ
int MPI_Pready_list(int length, const int array_of_partitions[],
MPI_Request request)
π¦ INPUT PARAMETERS π¦
lengthβ list length (integer)array_of_partitionsβ array of partitions (non-negative integer)requestβ partitioned communication request (handle)
π₯ THREAD AND INTERRUPT SAFETY π₯
Good news bestie: this routine is thread-safe. What that means is you can literally call it from multiple threads at the same time and you do not need to bring your own thread locks β she handles herself. π
But. However. The routine is not interrupt safe. Not me being the bearer of bad news π β typically this is because of memory allocation routines like malloc, or other non-MPICH runtime routines, which are themselves not interrupt-safe. So like, respect the boundary, okay?
π NOTES FOR FORTRAN π
Okay so Fortran girlies, listen up, this is important:
All MPI routines in Fortran (except for MPI_WTIME and MPI_WTICK) have an additional argument ierr at the end of the argument list. ierr is an integer and has the same meaning as the return value of the routine in C. In Fortran, MPI routines are subroutines, and they're invoked with the call statement.
All MPI objects (e.g., MPI_Datatype, MPI_Comm) are of type INTEGER in Fortran.
π ERRORS π
Every single MPI routine (except MPI_Wtime and MPI_Wtick, the main characters who don't play that game) returns an error value: C routines as the value of the function, and Fortran routines in the last argument. Before the value is returned, the current MPI error handler gets called. By default, this error handler aborts the MPI job. π
The error handler may be changed with MPI_Comm_set_errhandler (for communicators), MPI_File_set_errhandler (for files), and MPI_Win_set_errhandler (for RMA windows). The MPI-1 routine MPI_Errhandler_set may be used but its use is deprecated (she's old, let her rest π).
The predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error; however, MPI implementations will attempt to continue whenever possible. Slay? Kind of? π«Ά
MPI_SUCCESSβ No error; MPI routine completed successfully. β¨ (the only one we like)MPI_ERR_ARGβ Invalid argument. Some argument is invalid and is not identified by a specific error class (e.g.,MPI_ERR_RANK).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.
π reminder from your girl: partitioned communication is iconic, MPI_Pready_list is iconic, and you marking a list of portions ready all at once is main character energy. periodt. π
and that's the page bestie!! this one's from the MPI manual, version date 4/10/2026 β that's MPI_Pready_list(3), and honestly she ate. ππ bye!! π
π¦ 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