@@ -6,47 +6,41 @@ with the communication object (e.g., communicator, window, file) is called.
66If no communication object is associated with the MPI call, then the call is
77considered attached to MPI_COMM_SELF and will call the associated MPI error
88handler. When MPI_COMM_SELF is not initialized (i.e., before
9- MPI_INIT / MPI_INIT_THREAD , after MPI_FINALIZE , or when using the Sessions
9+ :ref: ` MPI_Init `/ :ref: ` MPI_Init_thread ` , after :ref: ` MPI_Finalize ` , or when using the Sessions
1010Model exclusively) the error raises the initial error handler. The initial
11- error handler can be changed by calling MPI_COMM_SET_ERRHANDLER on
11+ error handler can be changed by calling :ref: ` MPI_Comm_set_errhandler ` on
1212MPI_COMM_SELF when using the World model, or the mpi_initial_errhandler CLI
13- argument to mpiexec or info key to MPI_COMM_SPAWN[_MULTIPLE] .
13+ argument to mpiexec or info key to :ref: ` MPI_Comm_spawn `/ :ref: ` MPI_Comm_spawn_multiple ` .
1414If no other appropriate error handler has been set, then the MPI_ERRORS_RETURN
1515error handler is called for MPI I/O functions and the MPI_ERRORS_ABORT error
1616handler is called for all other MPI functions.
1717
18- In the sessions model, the error handler can be set during MPI_Session_init.
18+ Open MPI includes three predefined error handlers that can be used:
1919
20- Open MPI includes three predefined error handlers that can be used::
20+ * ``MPI_ERRORS_ARE_FATAL ``
21+ Causes the program to abort all connected MPI processes.
22+ * ``MPI_ERRORS_ABORT ``
23+ An error handler that can be invoked on a communicator,
24+ window, file, or session. When called on a communicator, it
25+ acts as if :ref: `MPI_Abort ` was called on that communicator. If
26+ called on a window or file, acts as if :ref: `MPI_Abort ` was called
27+ on a communicator containing the group of processes in the
28+ corresponding window or file. If called on a session,
29+ aborts only the local process.
30+ * ``MPI_ERRORS_RETURN ``
31+ Returns an error code to the application.
2132
22- MPI_ERRORS_ARE_FATAL: Causes the program to abort all connected MPI processes.
23- MPI_ERRORS_ABORT: An error handler that can be invoked on a communicator,
24- window, file, or session. When called on a communicator, it
25- acts as if MPI_ABORT was called on that communicator. If
26- called on a window or file, acts as if MPI_ABORT was called
27- on a communicator containing the group of processes in the
28- corresponding window or file. If called on a session,
29- aborts only the local process.
30- MPI_ERRORS_RETURN: Returns an error code to the application.
33+ MPI applications can also implement their own error handlers by calling:
3134
32- MPI applications can also implement their own error handlers.
33-
34- Custom MPI error handlers can be created by calling:
35- :ref: `MPI_Comm_create_errhandler(3) <MPI_Comm_create_errhandler >`
36- :ref: `MPI_File_create_errhandler(3) <MPI_File_create_errhandler >`
37- :ref: `MPI_Session_create_errhandler(3) <MPI_Session_create_errhandler >`
38- :ref: `MPI_Win_create_errhandler(3) <MPI_Win_create_errhandler >`
39-
40- Predefined and custom error handlers can be set by calling:
41- :ref: `MPI_Comm_set_errhandler(3) <MPI_Comm_set_errhandler >`
42- :ref: `MPI_File_set_errhandler(3) <MPI_File_set_errhandler >`
43- :ref: `MPI_Session_set_errhandler(3) <MPI_Session_set_errhandler >`
44- :ref: `MPI_Win_set_errhandler(3) <MPI_Win_set_errhandler >`
35+ * :ref: `MPI_Comm_create_errhandler ` then :ref: `MPI_Comm_set_errhandler `
36+ * :ref: `MPI_File_create_errhandler ` then :ref: `MPI_File_set_errhandler `
37+ * :ref: `MPI_Session_create_errhandler ` then :ref: `MPI_Session_set_errhandler ` or at :ref: `MPI_Session_init `
38+ * :ref: `MPI_Win_create_errhandler ` then :ref: `MPI_Win_set_errhandler `
4539
4640Note that MPI does not guarantee that an MPI program can continue past
4741an error.
4842
49- See the MPI man page for a full list of MPI error codes.
43+ See the :ref: ` MPI man page < open-mpi >` for a full list of :ref: ` MPI error codes < open-mpi-errors >` .
5044
5145See the Error Handling section of the MPI-|mpi_standard_version | standard for
5246more information.
0 commit comments