Skip to content

Commit d5f9e2e

Browse files
authored
Merge pull request #11367 from zerothi/11340-doc-beautification
Beautification of rst documentation
2 parents ef6d661 + c5fdcc0 commit d5f9e2e

File tree

375 files changed

+2377
-1846
lines changed

Some content is hidden

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

375 files changed

+2377
-1846
lines changed

docs/conf.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@
116116
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
117117
# ones.
118118
import sphinx_rtd_theme
119-
extensions = ['recommonmark', "sphinx_rtd_theme"]
119+
extensions = [
120+
'recommonmark',
121+
"sphinx_rtd_theme",
122+
"sphinx.ext.extlinks",
123+
]
120124

121125
# Add any paths that contain templates here, relative to this directory.
122126
templates_path = ['_templates']
@@ -139,6 +143,14 @@
139143
# so a file named "default.css" will overwrite the builtin "default.css".
140144
#html_static_path = ['_static']
141145

146+
147+
# Short hand external links
148+
# Allows smoother transitioning for commonly used articles and sites
149+
extlinks = {
150+
'doi': ('https://doi.org/%s', '%s'),
151+
}
152+
153+
142154
# -- Options for MAN output -------------------------------------------------
143155

144156
import os

docs/features/ulfm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ please use:
107107
J. Dongarra: Post-failure recovery of MPI communication
108108
capability: Design and rationale. IJHPCA 27(3): 244-254 (2013).*
109109

110-
Available from: https://journals.sagepub.com/doi/10.1177/1094342013488238.
110+
Available from: :doi:`10.1177/1094342013488238`.
111111

112112
Building ULFM support in Open MPI
113113
---------------------------------

docs/man-openmpi/man3/ERRORS.rst

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,41 @@ with the communication object (e.g., communicator, window, file) is called.
66
If no communication object is associated with the MPI call, then the call is
77
considered attached to MPI_COMM_SELF and will call the associated MPI error
88
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
9+
:ref:`MPI_Init`/:ref:`MPI_Init_thread`, after :ref:`MPI_Finalize`, or when using the Sessions
1010
Model 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
1212
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].
13+
argument to mpiexec or info key to :ref:`MPI_Comm_spawn`/:ref:`MPI_Comm_spawn_multiple`.
1414
If no other appropriate error handler has been set, then the MPI_ERRORS_RETURN
1515
error handler is called for MPI I/O functions and the MPI_ERRORS_ABORT error
1616
handler 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

4640
Note that MPI does not guarantee that an MPI program can continue past
4741
an 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

5145
See the Error Handling section of the MPI-|mpi_standard_version| standard for
5246
more information.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ EXAMPLES
9494
}
9595
9696
.. seealso::
97-
:ref:`MPIX_Query_rocm_support`
97+
* :ref:`MPIX_Query_rocm_support`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ EXAMPLES
9494
}
9595
9696
.. seealso::
97-
:ref:`MPIX_Query_cuda_support`
97+
* :ref:`MPIX_Query_cuda_support`

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ INPUT PARAMETERS
5353

5454
OUTPUT PARAMETER
5555
----------------
56-
* ``IERROR``: Fortran only: Error status (integer).
56+
* ``ierror``: Fortran only: Error status (integer).
5757

5858
DESCRIPTION
5959
-----------
@@ -67,9 +67,9 @@ abort (errorcode).
6767
The long-term goal of the Open MPI implementation is to terminate all
6868
processes in all tasks that contain a process in *comm, and the error
6969
code is not returned to the invoking environment. At the moment, this
70-
isn't fully implemented and :ref:`MPI_Abort` will terminate the entire job.*
70+
isn't fully implemented and* :ref:`MPI_Abort` *will terminate the entire job.*
7171

72-
Note: All associated processes are sent a SIGTERM.
72+
Note: All associated processes are sent a ``SIGTERM``.
7373

7474

7575
ERRORS

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ INPUT PARAMETERS
9999
OUTPUT PARAMETER
100100
----------------
101101
* ``MPI_Raccumulate``: RMA request
102-
* ``IERROR``: Fortran only: Error status (integer).
102+
* ``ierror``: Fortran only: Error status (integer).
103103

104104
DESCRIPTION
105105
-----------
@@ -145,11 +145,11 @@ The MPI standard prescribes portable Fortran syntax for the
145145
*TARGET_DISP* argument only for Fortran 90. FORTRAN 77 users may use the
146146
non-portable syntax
147147

148-
::
148+
.. code-block:: fortran
149149
150150
INTEGER*MPI_ADDRESS_KIND TARGET_DISP
151151
152-
where MPI_ADDRESS_KIND is a constant defined in mpif.h and gives the
152+
where ``MPI_ADDRESS_KIND`` is a constant defined in ``mpif.h`` and gives the
153153
length of the declared integer in bytes.
154154

155155

@@ -172,4 +172,6 @@ ERRORS
172172
.. include:: ./ERRORS.rst
173173

174174
.. seealso::
175-
:ref:`MPI_Put` :ref:`MPI_Get_accumulate` :ref:`MPI_Reduce`
175+
* :ref:`MPI_Put`
176+
* :ref:`MPI_Get_accumulate`
177+
* :ref:`MPI_Reduce`

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ MPI_Add_error_class
66

77
.. include_body
88
9-
::
10-
11-
MPI_Add_error_class - Creates a new error class and returns its value
9+
:ref:`MPI_Add_error_class` - Creates a new error class and returns its value
1210

1311

1412
SYNTAX
@@ -50,7 +48,7 @@ Fortran 2008 Syntax
5048
OUTPUT PARAMETERS
5149
-----------------
5250
* ``errorclass``: New error class (integer).
53-
* ``IERROR``: Fortran only: Error status (integer).
51+
* ``ierror``: Fortran only: Error status (integer).
5452

5553
DESCRIPTION
5654
-----------
@@ -83,4 +81,7 @@ ERRORS
8381
.. include:: ./ERRORS.rst
8482

8583
.. seealso::
86-
:ref:`MPI_Add_error_code` :ref:`MPI_Add_error_string` :ref:`MPI_Error_class` :ref:`MPI_Error_string`
84+
* :ref:`MPI_Add_error_code`
85+
* :ref:`MPI_Add_error_string`
86+
* :ref:`MPI_Error_class`
87+
* :ref:`MPI_Error_string`

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ INPUT PARAMETER
5454
OUTPUT PARAMETERS
5555
-----------------
5656
* ``errorcode``: Error code returned by an MPI routine or an MPI error class (integer).
57-
* ``IERROR``: Fortran only: Error status (integer).
57+
* ``ierror``: Fortran only: Error status (integer).
5858

5959
DESCRIPTION
6060
-----------
@@ -78,4 +78,5 @@ ERRORS
7878
.. include:: ./ERRORS.rst
7979

8080
.. seealso::
81-
:ref:`MPI_Add_error_class` :ref:`MPI_Error_class`
81+
* :ref:`MPI_Add_error_class`
82+
* :ref:`MPI_Error_class`

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ MPI_Add_error_string
66

77
.. include_body
88
9-
::
10-
11-
MPI_Add_error_string - Associates a string with an error code or class
9+
:ref:`MPI_Add_error_string` - Associates a string with an error code or class
1210

1311

1412
SYNTAX
@@ -56,7 +54,7 @@ INPUT PARAMETERS
5654

5755
OUTPUT PARAMETER
5856
----------------
59-
* ``IERROR``: Fortran only: Error status (integer).
57+
* ``ierror``: Fortran only: Error status (integer).
6058

6159
DESCRIPTION
6260
-----------
@@ -75,4 +73,7 @@ ERRORS
7573
.. include:: ./ERRORS.rst
7674

7775
.. seealso::
78-
:ref:`MPI_Add_error_class` :ref:`MPI_Add_error_code` :ref:`MPI_Error_class` :ref:`MPI_Error_string`
76+
* :ref:`MPI_Add_error_class`
77+
* :ref:`MPI_Add_error_code`
78+
* :ref:`MPI_Error_class`
79+
* :ref:`MPI_Error_string`

0 commit comments

Comments
 (0)