MPI_PREADY_RANGE(3)
π MPI_Pready_range π
okay so bestie, welcome to the manual page for MPI_Pready_range, which lives in the MPI_PREADY_RANGE(3) section of the Open MPI docs. this little icon tells the world that a whole range of send-side partitions are ready to be shipped out. like, "these ones are done, come get em" energy. no cap. π«Ά
β¨ NAME β¨
MPI_Pready_range β signals that a given range of send-side partitions are ready to be transferred. π
πΈ SYNTAX πΈ
π C Syntax
#include <mpi.h>
int MPI_Pready_range(int partition_low, int partition_high, MPI_Request request)
π Fortran Syntax
USE MPI
! or the older form: INCLUDE 'mpif.h'
MPI_PREADY(PARTITION_LOW, PARTITION_HIGH, REQUEST, IERROR)
INTEGER PARTITION_LOW, PARTITION_HIGH, REQUEST, IERROR
π Fortran 2008 Syntax
USE mpi_f08
MPI_Pready(partition_low, partition_high, request, ierror)
INTEGER, INTENT(IN) :: partition_low, partition_high
TYPE(MPI_Request), INTENT(IN) :: request
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
π¦ INPUT PARAMETERS π¦
partition_lowβ the lowest partition in the range you're marking as ready to transfer. it's an integer, bestie. πpartition_highβ the highest partition in that range. also an integer. πrequestβ your communication request, aka the handle. π―
π OUTPUT PARAMETERS π
ierrorβ Fortran only: the error status (integer). π§Ύ
π ERRORS π
okay so real talk: almost every MPI routine gives you back an error value. in C it's the return value of the function, and in Fortran it lands in the last argument. π
but before that error value comes back to you, the current MPI error handler attached to the communication object (think: communicator, window, file) gets called. and if there's no communication object tied to that MPI call at all? then the call is considered attached to MPI_COMM_SELF and it'll call the error handler for that. and when MPI_COMM_SELF isn't even initialized yet β meaning before MPI_Init / MPI_Init_thread, after MPI_Finalize, or when you're using the Sessions Model exclusively β then the error raises the initial error handler. π±
you can change that initial error handler, btw, by calling MPI_Comm_set_errhandler on MPI_COMM_SELF if you're in the World model, or via the mpi_initial_errhandler CLI argument to mpiexec, or with the info key to MPI_Comm_spawn / MPI_Comm_spawn_multiple. and if no other appropriate error handler has been set? then MPI_ERRORS_RETURN gets called for MPI I/O functions, and MPI_ERRORS_ABORT gets called for all the other MPI functions. π
Open MPI ships three predefined error handlers you can use:
MPI_ERRORS_ARE_FATALβ causes the program to abort all connected MPI processes. dramatic, but it's giving decisive. πMPI_ERRORS_ABORTβ an error handler that can be invoked on a communicator, window, file, or session. when you call it on a communicator, it acts as ifMPI_Abortwas called on that communicator. call it on a window or file and it acts as ifMPI_Abortwas called on a communicator containing the group of processes in the corresponding window or file. call it on a session and it aborts only the local process. πͺοΈMPI_ERRORS_RETURNβ hands an error code back to your application. π«Ά
MPI applications can also implement their very own error handlers by calling:
MPI_Comm_create_errhandlerand thenMPI_Comm_set_errhandlerπ οΈMPI_File_create_errhandlerand thenMPI_File_set_errhandlerπMPI_Session_create_errhandlerand thenMPI_Session_set_errhandler, or atMPI_Session_initπMPI_Win_create_errhandlerand thenMPI_Win_set_errhandlerπͺ
β οΈ note that MPI does not guarantee that an MPI program can continue past an error. like, once it's over it's over, periodt.
see the MPI man page for a full list of MPI error codes. π
and see the Error Handling section of the MPI-3.1 standard if you want the deep lore. π
see also:
MPI_PreadyMPI_Pready_listMPI_Parrived
π Copyright π
2003-2026, The Open MPI Community π
okay bestie that's the whole page!! π₯³ this was MPI_PREADY_RANGE(3) from Open MPI, dated Sep 10, 2026 β go mark those partitions ready and slay, you've got this π β¨π¦π
π¦ where this page comes from
- ubuntu stonking: openmpi-doc 5.0.10-6 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms