MPIX_COMM_REVOKE(3)
π MPIX_COMM_REVOKE π
okay bestie, welcome to MPIX_COMM_REVOKE(3) from the Open MPI manual set β this is the page where we learn how to revoke a communicator. yes, like taking away its phone privileges, except the consequence is errors being raised, at all ranks, for non-local operations on that communicator. π
This one is part of the User Level Fault Mitigation ULFM extension. β¨
β¨ SYNTAX β¨
π C Syntax
#include <mpi.h>
#include <mpi-ext.h>
int MPIX_Comm_revoke(MPI_Comm comm)
π Fortran Syntax
USE MPI
USE MPI_EXT
! or the older form: INCLUDE 'mpif.h'
MPIX_COMM_REVOKE(COMM, IERROR)
INTEGER COMM, IERROR
π Fortran 2008 Syntax
USE mpi_f08
USE mpi_ext_f08
MPIX_Comm_revoke(comm, ierror)
TYPE(MPI_Comm), INTENT(IN) :: comm
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
πΈ INPUT PARAMETERS πΈ
commβ the communicator, as a handle. that's the whole input, she's low maintenance. π
πΈ OUTPUT PARAMETERS πΈ
ierrorβ Fortran only: the error status (an integer). C girlies get it as the return value instead.
π DESCRIPTION π
so what does this actually do? MPIX_Comm_revoke marks the communicator comm as revoked at all MPI processes in the groups (local and remote) that are associated with comm. the way this works is not collective, so there is no matching call required on the remote MPI processes. no group chat handshake needed, she just does it. π¦
if you want the full lore on when a communicator becomes revoked locally and what semantics apply on a revoked communicator, go read the docs for MPIX_Comm_is_revoked β that's the deep dive. the tl;dr: once a communicator is revoked, any non-local operation raises an exception of class MPIX_ERR_REVOKED, except for select fault-tolerant operations (those are the exceptions, iykyk). π«Ά
π PROPAGATION OF THE REVOKED STATE AND ORDERING π
the implementation propagates the revoked state in a fault-tolerant manner. so even with failed processes in the mix, the communicator still becomes revoked at all the non-failed MPI processes that belong to comm. iconic behavior honestly. π
now the ordering part, pay attention: there is no particular ordering between the revocation call at another process and the completion of operations at a local process. for example β and this is the example, keep it β a receive operation can raise an error of class MPIX_ERR_REVOKED even if the send operation procedure is called before the revoke procedure at the sender. yes. chaos. that's just how it is. π
β ERRORS β
almost all MPI routines return an error value. C routines give it back as the return result of the function, and Fortran routines put it in the last argument. that's the split, no cap.
before that error value comes back to you, the current MPI error handler associated with the communication object (think: communicator, window, file) gets called. and if there's no communication object associated with the MPI call? then the call is considered attached to MPI_COMM_SELF and it will call the associated MPI error handler for that. π
when MPI_COMM_SELF is not initialized β that means before MPI_Init / MPI_Init_thread, after MPI_Finalize, or when you're using the Sessions Model exclusively β the error raises the initial error handler. you can change that initial error handler by calling MPI_Comm_set_errhandler on MPI_COMM_SELF when you're using the World model, or via the mpi_initial_errhandler CLI argument to mpiexec, or 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 is the error handler that gets called for MPI I/O functions, and MPI_ERRORS_ABORT gets called for all other MPI functions. that's the default pipeline, fr fr.
Open MPI includes three predefined error handlers you can use, and they are:
MPI_ERRORS_ARE_FATALβ causes the program to abort all connected MPI processes. yeah. everybody. πMPI_ERRORS_ABORTβ an error handler that can be invoked on a communicator, window, file, or session. when called on a communicator, it acts as ifMPI_Abortwas called on that communicator. if called on a window or file, it acts as ifMPI_Abortwas called on a communicator containing the group of processes in the corresponding window or file. if called on a session, it aborts only the local process. different vibes per object, love that for us. πMPI_ERRORS_RETURNβ returns an error code to the application. the chill one. β¨
MPI applications can also implement their own error handlers by calling:
MPI_Comm_create_errhandlerand thenMPI_Comm_set_errhandlerMPI_File_create_errhandlerand thenMPI_File_set_errhandlerMPI_Session_create_errhandlerand thenMPI_Session_set_errhandler, or atMPI_Session_initMPI_Win_create_errhandlerand thenMPI_Win_set_errhandler
β οΈ note that MPI does not guarantee that an MPI program can continue past an error. so likeβ¦ don't assume she's fine after an error, because she might not be. π«£
see the MPI man page for a full list of MPI error codes. see the Error Handling section of the MPI-3.1 standard for more information. π
see also:
MPIX_Comm_is_revokedMPIX_Comm_agreeMPIX_Comm_shrink
π Copyright π
2003-2026, The Open MPI Community π
and that's the whole page bestie!! this was MPIX_COMM_REVOKE(3) from Open MPI, last touched Sep 10, 2026. go forth, revoke responsibly, and remember: non-local ops raise MPIX_ERR_REVOKED, no matching remote call needed, and you ate. ππ
β¨π¦
π¦ 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