Skip to content

Commit 4a887f3

Browse files
author
David Wootton
committed
Update man pages to describe error handling in MPI-4
All man pages use a common text file to describe error handling with additional text for some MPI_Test*, MPI_Wait, and MPI_Grequest* pages. Fix review comments Signed-off-by: David Wootton <[email protected]>
1 parent ff62b05 commit 4a887f3

File tree

349 files changed

+406
-3382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+406
-3382
lines changed

docs/man-openmpi/man3/ERRORS.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Almost all MPI routines return an error value; C routines as the return result
2+
of the function and Fortran routines in the last argument.
3+
4+
Before the error value is returned, the current MPI error handler associated
5+
with the communication object (e.g., communicator, window, file) is called.
6+
If no communication object is associated with the MPI call, then the call is
7+
considered attached to MPI_COMM_SELF and will call the associated MPI error
8+
handler. When MPI_COMM_SELF is not initialized (i.e., before
9+
MPI_INIT / MPI_INIT_THREAD, after MPI_FINALIZE, or when using the Sessions
10+
Model exclusively) the error raises the initial error handler. The initial
11+
error handler can be changed by calling MPI_COMM_SET_ERRHANDLER on
12+
MPI_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].
14+
If no other appropriate error handler has been set, then the MPI_ERRORS_RETURN
15+
error handler is called for MPI I/O functions and the MPI_ERRORS_ABORT error
16+
handler is called for all other MPI functions.
17+
18+
In the sessions model, the error handler can be set during MPI_Session_init.
19+
20+
Open MPI includes three predefined error handlers that can be used::
21+
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.
31+
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>`
45+
46+
Note that MPI does not guarantee that an MPI program can continue past
47+
an error.
48+
49+
See the MPI man page for a full list of MPI error codes.
50+
51+
See the Error Handling section of the MPI-|mpi_standard_version| standard for
52+
more information.
53+

docs/man-openmpi/man3/MPI_Abort.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,4 @@ Note: All associated processes are sent a SIGTERM.
7474

7575
ERRORS
7676
------
77-
78-
Almost all MPI routines return an error value; C routines as the value
79-
of the function and Fortran routines in the last argument.
80-
81-
Before the error value is returned, the current MPI error handler is
82-
called. By default, this error handler aborts the MPI job, except for
83-
I/O function errors. The error handler may be changed with
84-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
85-
may be used to cause error values to be returned. Note that MPI does not
86-
guarantee that an MPI program can continue past an error.
77+
.. include:: ./ERRORS.rst

docs/man-openmpi/man3/MPI_Accumulate.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,7 @@ arguments in the call to the :ref:`MPI_Accumulate` function.
169169
ERRORS
170170
------
171171

172-
Almost all MPI routines return an error value; C routines as the value
173-
of the function and Fortran routines in the last argument.
174-
175-
Before the error value is returned, the current MPI error handler is
176-
called. By default, this error handler aborts the MPI job, except for
177-
I/O function errors. The error handler may be changed with
178-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
179-
may be used to cause error values to be returned. Note that MPI does not
180-
guarantee that an MPI program can continue past an error.
181-
172+
.. include:: ./ERRORS.rst
182173

183174
.. seealso::
184175
:ref:`MPI_Put` :ref:`MPI_Get_accumulate` :ref:`MPI_Reduce`

docs/man-openmpi/man3/MPI_Add_error_class.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,7 @@ The value returned is always greater than or equal to MPI_ERR_LASTCODE.
8080
ERRORS
8181
------
8282

83-
Almost all MPI routines return an error value; C routines as the value
84-
of the function and Fortran routines in the last argument.
85-
86-
Before the error value is returned, the current MPI error handler is
87-
called. By default, this error handler aborts the MPI job, except for
88-
I/O function errors. The error handler may be changed with
89-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
90-
may be used to cause error values to be returned. Note that MPI does not
91-
guarantee that an MPI program can continue past an error.
92-
83+
.. include:: ./ERRORS.rst
9384

9485
.. seealso::
9586
:ref:`MPI_Add_error_code` :ref:`MPI_Add_error_string` :ref:`MPI_Error_class` :ref:`MPI_Error_string`

docs/man-openmpi/man3/MPI_Add_error_code.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,7 @@ The value returned is always greater than or equal to MPI_ERR_LASTCODE.
7575
ERRORS
7676
------
7777

78-
Almost all MPI routines return an error value; C routines as the value
79-
of the function and Fortran routines in the last argument.
80-
81-
Before the error value is returned, the current MPI error handler is
82-
called. By default, this error handler aborts the MPI job, except for
83-
I/O function errors. The error handler may be changed with
84-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
85-
may be used to cause error values to be returned. Note that MPI does not
86-
guarantee that an MPI program can continue past an error.
87-
78+
.. include:: ./ERRORS.rst
8879

8980
.. seealso::
9081
:ref:`MPI_Add_error_class` :ref:`MPI_Error_class`

docs/man-openmpi/man3/MPI_Add_error_string.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,7 @@ code or class with a value not greater than MPI_LAST_ERRCODE).
7272
ERRORS
7373
------
7474

75-
Almost all MPI routines return an error value; C routines as the value
76-
of the function and Fortran routines in the last argument.
77-
78-
Before the error value is returned, the current MPI error handler is
79-
called. By default, this error handler aborts the MPI job, except for
80-
I/O function errors. The error handler may be changed with
81-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
82-
may be used to cause error values to be returned. Note that MPI does not
83-
guarantee that an MPI program can continue past an error.
84-
75+
.. include:: ./ERRORS.rst
8576

8677
.. seealso::
8778
:ref:`MPI_Add_error_class` :ref:`MPI_Add_error_code` :ref:`MPI_Error_class` :ref:`MPI_Error_string`

docs/man-openmpi/man3/MPI_Address.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,7 @@ variables guarantees portability to such machines as well.
8989
ERRORS
9090
------
9191

92-
Almost all MPI routines return an error value; C routines as the value
93-
of the function and Fortran routines in the last argument.
94-
95-
Before the error value is returned, the current MPI error handler is
96-
called. By default, this error handler aborts the MPI job, except for
97-
I/O function errors. The error handler may be changed with
98-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
99-
may be used to cause error values to be returned. Note that MPI does not
100-
guarantee that an MPI program can continue past an error.
101-
92+
.. include:: ./ERRORS.rst
10293

10394
.. seealso::
10495
:ref:`MPI_Get_address`

docs/man-openmpi/man3/MPI_Allgather.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,7 @@ in the second group. You can move data in only one direction by giving
199199
ERRORS
200200
------
201201

202-
Almost all MPI routines return an error value; C routines as the value
203-
of the function and Fortran routines in the last argument.
204-
205-
Before the error value is returned, the current MPI error handler is
206-
called. By default, this error handler aborts the MPI job, except for
207-
I/O function errors. The error handler may be changed with
208-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
209-
may be used to cause error values to be returned. Note that MPI does not
210-
guarantee that an MPI program can continue past an error.
211-
202+
.. include:: ./ERRORS.rst
212203

213204
.. seealso::
214205
:ref:`MPI_Allgatherv` :ref:`MPI_Gather`

docs/man-openmpi/man3/MPI_Allgatherv.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,7 @@ operation must exhibit symmetric, full-duplex behavior.
186186
ERRORS
187187
------
188188

189-
Almost all MPI routines return an error value; C routines as the value
190-
of the function and Fortran routines in the last argument.
191-
192-
Before the error value is returned, the current MPI error handler is
193-
called. By default, this error handler aborts the MPI job, except for
194-
I/O function errors. The error handler may be changed with
195-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
196-
may be used to cause error values to be returned. Note that MPI does not
197-
guarantee that an MPI program can continue past an error.
198-
189+
.. include:: ./ERRORS.rst
199190

200191
.. seealso::
201192
:ref:`MPI_Gatherv` :ref:`MPI_Allgather`

docs/man-openmpi/man3/MPI_Alloc_mem.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,7 @@ User's Guide and are supported by many Fortran compilers. For example,
112112
ERRORS
113113
------
114114

115-
Almost all MPI routines return an error value; C routines as the value
116-
of the function and Fortran routines in the last argument.
117-
118-
Before the error value is returned, the current MPI error handler is
119-
called. By default, this error handler aborts the MPI job, except for
120-
I/O function errors. The error handler may be changed with
121-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
122-
may be used to cause error values to be returned. Note that MPI does not
123-
guarantee that an MPI program can continue past an error.
124-
115+
.. include:: ./ERRORS.rst
125116

126117
.. seealso::
127118
:ref:`MPI_Free_mem`

docs/man-openmpi/man3/MPI_Allreduce.3.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,4 @@ MPI_ERRORS_RETURN , then no error may be indicated.
209209
ERRORS
210210
------
211211

212-
Almost all MPI routines return an error value; C routines as the value
213-
of the function and Fortran routines in the last argument.
214-
215-
Before the error value is returned, the current MPI error handler is
216-
called. By default, this error handler aborts the MPI job, except for
217-
I/O function errors. The error handler may be changed with
218-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
219-
may be used to cause error values to be returned. Note that MPI does not
220-
guarantee that an MPI program can continue past an error.
212+
.. include:: ./ERRORS.rst

docs/man-openmpi/man3/MPI_Alltoall.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,7 @@ functionality to allow the exchange of data with different datatypes.
193193
ERRORS
194194
------
195195

196-
Almost all MPI routines return an error value; C routines as the value
197-
of the function and Fortran routines in the last argument.
198-
199-
Before the error value is returned, the current MPI error handler is
200-
called. By default, this error handler aborts the MPI job, except for
201-
I/O function errors. The error handler may be changed with
202-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
203-
may be used to cause error values to be returned. Note that MPI does not
204-
guarantee that an MPI program can continue past an error.
205-
196+
.. include:: ./ERRORS.rst
206197

207198
.. seealso::
208199
:ref:`MPI_Alltoallv` :ref:`MPI_Alltoallw`

docs/man-openmpi/man3/MPI_Alltoallv.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,7 @@ where these offsets are measured in bytes.
213213
ERRORS
214214
------
215215

216-
Almost all MPI routines return an error value; C routines as the value
217-
of the function and Fortran routines in the last argument.
218-
219-
Before the error value is returned, the current MPI error handler is
220-
called. By default, this error handler aborts the MPI job, except for
221-
I/O function errors. The error handler may be changed with
222-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
223-
may be used to cause error values to be returned. Note that MPI does not
224-
guarantee that an MPI program can continue past an error.
225-
216+
.. include:: ./ERRORS.rst
226217

227218
.. seealso::
228219
:ref:`MPI_Alltoall` :ref:`MPI_Alltoallw`

docs/man-openmpi/man3/MPI_Alltoallw.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,7 @@ this to :ref:`MPI_Alltoallv`, where these offsets are measured in units of
217217
ERRORS
218218
------
219219

220-
Almost all MPI routines return an error value; C routines as the value
221-
of the function and Fortran routines in the last argument.
222-
223-
Before the error value is returned, the current MPI error handler is
224-
called. By default, this error handler aborts the MPI job, except for
225-
I/O function errors. The error handler may be changed with
226-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
227-
may be used to cause error values to be returned. Note that MPI does not
228-
guarantee that an MPI program can continue past an error.
229-
220+
.. include:: ./ERRORS.rst
230221

231222
.. seealso::
232223
:ref:`MPI_Alltoall` :ref:`MPI_Alltoallv`

docs/man-openmpi/man3/MPI_Attr_delete.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,7 @@ being invoked.
7575
ERRORS
7676
------
7777

78-
Almost all MPI routines return an error value; C routines as the value
79-
of the function and Fortran routines in the last argument.
80-
81-
Before the error value is returned, the current MPI error handler is
82-
called. By default, this error handler aborts the MPI job, except for
83-
I/O function errors. The error handler may be changed with
84-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
85-
may be used to cause error values to be returned. Note that MPI does not
86-
guarantee that an MPI program can continue past an error.
87-
78+
.. include:: ./ERRORS.rst
8879

8980
.. seealso::
9081
:ref:`MPI_Comm_delete_attr`

docs/man-openmpi/man3/MPI_Attr_get.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,7 @@ an erroneous key value.
6464
ERRORS
6565
------
6666

67-
Almost all MPI routines return an error value; C routines as the value
68-
of the function and Fortran routines in the last argument.
69-
70-
Before the error value is returned, the current MPI error handler is
71-
called. By default, this error handler aborts the MPI job, except for
72-
I/O function errors. The error handler may be changed with
73-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
74-
may be used to cause error values to be returned. Note that MPI does not
75-
guarantee that an MPI program can continue past an error.
76-
67+
.. include:: ./ERRORS.rst
7768

7869
.. seealso::
7970
:ref:`MPI_Comm_get_attr`

docs/man-openmpi/man3/MPI_Attr_put.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,7 @@ the corresponding keyval was created) will be called.
8080
ERRORS
8181
------
8282

83-
Almost all MPI routines return an error value; C routines as the value
84-
of the function and Fortran routines in the last argument.
85-
86-
Before the error value is returned, the current MPI error handler is
87-
called. By default, this error handler aborts the MPI job, except for
88-
I/O function errors. The error handler may be changed with
89-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
90-
may be used to cause error values to be returned. Note that MPI does not
91-
guarantee that an MPI program can continue past an error.
92-
83+
.. include:: ./ERRORS.rst
9384

9485
.. seealso::
9586
:ref:`MPI_Comm_set_attr`

docs/man-openmpi/man3/MPI_Barrier.3.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ have entered the barrier.
8484
Errors
8585
------
8686

87-
Almost all MPI routines return an error value; C routines as the value
88-
of the function and Fortran routines in the last argument. Before the
89-
error value is returned, the current MPI error handler is called. By
90-
default, this error handler aborts the MPI job, except for I/O function
91-
errors. The error handler may be changed with :ref:`MPI_Comm_set_errhandler`;
92-
the predefined error handler MPI_ERRORS_RETURN may be used to cause
93-
error values to be returned. Note that MPI does not guarantee that an
94-
MPI program can continue past an error.
95-
87+
.. include:: ./ERRORS.rst
9688

9789
.. seealso:: :ref:`MPI_Bcast`

docs/man-openmpi/man3/MPI_Bcast.3.rst

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,4 @@ This function does not support the in-place option.
127127

128128
ERRORS
129129
------
130-
131-
Almost all MPI routines return an error value; C routines as the value
132-
of the function and Fortran routines in the last argument.
133-
134-
Before the error value is returned, the current MPI error handler is
135-
called. By default, this error handler aborts the MPI job, except for
136-
I/O function errors. The error handler may be changed with
137-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler
138-
MPI_ERRORS_RETURN may be used to cause error values to be returned.
139-
Note that MPI does not guarantee that an MPI program can continue past
140-
an error.
130+
.. include:: ./ERRORS.rst

docs/man-openmpi/man3/MPI_Bsend.3.rst

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,4 @@ delivered.)
9797
Errors
9898
------
9999

100-
Almost all MPI routines return an error value; C routines as the value;
101-
C routines as the value of the function and Fortran routines in the last
102-
argument.
103-
104-
Before the error value is returned, the current MPI error handler is
105-
called. By default, this error handler aborts the MPI job, except for
106-
I/O function errors. The error handler may be changed with
107-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler
108-
MPI_ERRORS_RETURN may be used to cause error values to be returned.
109-
Note that MPI does not guarantee that an MPI program can continue past
110-
an error.
100+
.. include:: ./ERRORS.rst

docs/man-openmpi/man3/MPI_Bsend_init.3.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,6 @@ initiated by the function :ref:`MPI_Start`.
7676
Errors
7777
------
7878

79-
Almost all MPI routines return an error value; C routines as the value
80-
of the function and Fortran routines in the last argument.
81-
82-
Before the error value is returned, the current MPI error handler is
83-
called. By default, this error handler aborts the MPI job, except for
84-
I/O function errors. The error handler may be changed with
85-
:ref:`MPI_Comm_set_errhandler`; the predefined error handler MPI_ERRORS_RETURN
86-
may be used to cause error values to be returned. Note that MPI does not
87-
guarantee that an MPI program can continue past an error.
88-
79+
.. include:: ./ERRORS.rst
8980

9081
.. seealso:: :ref:`MPI_Send_init` :ref:`MPI_Start`

0 commit comments

Comments
 (0)