Skip to content

Commit 33869de

Browse files
zerothijsquyres
authored andcommitted
doc: lots of improvements to code-blocks and variables
Basically all files have had a go to be updated and beautified, too many to list here. Signed-off-by: Nick Papior <nickpapior@gmail.com>
1 parent d5b9eb7 commit 33869de

File tree

95 files changed

+925
-753
lines changed

Some content is hidden

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

95 files changed

+925
-753
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ that originally produced *base* had called:
7575

7676
::
7777

78-
MPI_Get_address ((char *) base + disp, &result);
78+
MPI_Get_address ((char *) base + disp, &result);
7979

80-
**MPI_Aint_diff** produces a new MPI_Aint value that is equivalent to
80+
:ref:`MPI_Aint_diff` produces a new MPI_Aint value that is equivalent to
8181
the difference between *addr1* and *addr2* arguments, where *addr1*
8282
and *addr2* represent addresses returned by calls to
8383
:ref:`MPI_Get_address`. The resulting address is valid only at the
@@ -86,7 +86,7 @@ must correspond to locations in the same object in the same process,
8686
as described in MPI-3.1 section 4.1.12. The difference is calculated
8787
in a manner that results in the signed difference from *addr1* to
8888
*addr2*, as if the process that originally produced the addresses had
89-
called (char \*) *addr1* - (char \*) *addr2* on the addresses
89+
called ``(char *) addr1`` - ``(char *) addr2`` on the addresses
9090
initially passed to :ref:`MPI_Get_address`.
9191

9292

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The type signature associated with sendcount, sendtype at a process must
126126
be equal to the type signature associated with recvcount, recvtype at
127127
any other process.
128128

129-
The outcome of a call to MPI_Allgather(...) is as if all processes
129+
The outcome of a call to :ref:`MPI_Allgather` is as if all processes
130130
executed n calls to
131131

132132
::
@@ -169,7 +169,7 @@ identical to the case in which all processes executed *n* calls to
169169

170170
::
171171

172-
MPI_ALLGATHER ( MPI_IN_PLACE, 0, MPI_DATATYPE_NULL, recvbuf,
172+
MPI_Allgather( MPI_IN_PLACE, 0, MPI_DATATYPE_NULL, recvbuf,
173173
recvcount, recvtype, root, comm )
174174

175175
for root =0, ... , n-1.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ buffer). Use the variable MPI_IN_PLACE as the value of *sendbuf*. In
152152
this case, *sendcount* and *sendtype* are ignored. The input data of
153153
each process is assumed to be in the area where that process would
154154
receive its own contribution to the receive buffer. Specifically, the
155-
outcome of a call to :ref:`MPI_Allgather` that used the in-place option is
155+
outcome of a call to :ref:`MPI_Allgatherv` that used the in-place option is
156156
identical to the case in which all processes executed *n* calls to
157157

158158
::
159159

160-
MPI_ALLGATHERV ( MPI_IN_PLACE, 0, MPI_DATATYPE_NULL, recvbuf,
160+
MPI_Allgatherv ( MPI_IN_PLACE, 0, MPI_DATATYPE_NULL, recvbuf,
161161
recvcounts, displs, recvtype, root, comm )
162162

163163
for root =0, ... , n-1.

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ this memory is returned in the variable *baseptr*.
6969
C NOTES
7070
-------
7171

72-
The parameter *baseptr* is of type *void \** to allow passing any
72+
The parameter *baseptr* is of type ``void *`` to allow passing any
7373
pointer object for this parameter. The provided argument should be a
74-
pointer to a pointer of arbitrary type (e.g., *void \*\**).
74+
pointer to a pointer of arbitrary type (e.g., ``void **``).
7575

7676

7777
FORTRAN NOTES
@@ -85,10 +85,11 @@ compilers.
8585
From FORTRAN 77, you can use the following non-standard declarations for
8686
the SIZE and BASEPTR arguments:
8787

88-
::
88+
.. code-block:: fortran
8989
9090
INCLUDE "mpif.h"
9191
INTEGER*MPI_ADDRESS_KIND SIZE, BASEPTR
92+
9293
9394
From either FORTRAN 77 or Fortran 90, you can use "Cray pointers" for
9495
the BASEPTR argument. Cray pointers are described further in the Fortran

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ DESCRIPTION
4848
-----------
4949

5050
Note that use of this routine is *deprecated as of MPI-2, and* was
51-
*deleted in MPI-3. Please use :ref:`MPI_Comm_set_attr`. This* function does not
51+
deleted in MPI-3. Please use :ref:`MPI_Comm_set_attr`. This function does not
5252
have a mpi_f08 binding.
5353

5454
:ref:`MPI_Attr_put` stores the stipulated attribute value attribute_val for
@@ -68,7 +68,7 @@ Values of the permanent attributes MPI_TAG_UB, MPI_HOST, MPI_IO, and
6868
MPI_WTIME_IS_GLOBAL may not be changed.
6969

7070
The type of the attribute value depends on whether C or Fortran is being
71-
used. In C, an attribute value is a pointer (void \*); in Fortran, it is
71+
used. In C, an attribute value is a pointer (``void *``); in Fortran, it is
7272
a single integer (not a pointer, since Fortran has no pointers and there
7373
are systems for which a pointer does not fit in an integer, e.g., any
7474
32-bit address system that uses 64 bits for Fortran DOUBLE PRECISION).

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ SYNTAX
1414
C Syntax
1515
^^^^^^^^
1616

17-
.. code:: C
17+
.. code-block:: C
1818
1919
#include <mpi.h>
2020
2121
int MPI_Barrier(MPI_Comm)
2222
int MPI_Ibarrier(MPI_Comm comm, MPI_Request *request)
23-
int MPI_barrier_init(MPI_Comm comm, MPI_Info info, MPI_Request *request)
23+
int MPI_Barrier_init(MPI_Comm comm, MPI_Info info, MPI_Request *request)
2424
2525
Fortran Syntax
2626
^^^^^^^^^^^^^^
2727

28-
.. code:: Fortran
28+
.. code-block:: Fortran
2929
3030
USE MPI
3131
! or the older form: INCLUDE 'mpif.h'
@@ -39,7 +39,7 @@ Fortran Syntax
3939
Fortran 2008 Syntax
4040
^^^^^^^^^^^^^^^^^^^
4141

42-
.. code:: Fortran
42+
.. code-block:: Fortran
4343
4444
USE mpi_f08
4545
MPI_Barrier(comm, ierror)
@@ -58,14 +58,14 @@ Fortran 2008 Syntax
5858
INPUT PARAMETER
5959
---------------
6060

61-
- comm : Communicator (handle).
62-
- info : Info (handle, persistent only).
61+
* ``comm`` : Communicator (handle).
62+
* ``info`` : Info (handle, persistent only).
6363

6464
OUTPUT PARAMETERS
6565
-----------------
6666

67-
- request : Request (handle, non-blocking only).
68-
- IERROR : Fortran only: Error status (integer).
67+
* ``request`` : Request (handle, non-blocking only).
68+
* ``IERROR`` : Fortran only: Error status (integer).
6969

7070
DESCRIPTION
7171
-----------
@@ -86,4 +86,5 @@ ERRORS
8686

8787
.. include:: ./ERRORS.rst
8888

89-
.. seealso:: :ref:`MPI_Bcast`
89+
.. seealso::
90+
* :ref:`MPI_Bcast`

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SYNTAX
1414
C Syntax
1515
^^^^^^^^
1616

17-
.. code:: C
17+
.. code-block:: C
1818
1919
#include <mpi.h>
2020
@@ -27,7 +27,7 @@ C Syntax
2727
Fortran Syntax
2828
^^^^^^^^^^^^^^
2929

30-
.. code:: Fortran
30+
.. code-block:: Fortran
3131
3232
USE MPI
3333
! or the older form: INCLUDE 'mpif.h'
@@ -42,7 +42,7 @@ Fortran Syntax
4242
Fortran 2008 Syntax
4343
^^^^^^^^^^^^^^^^^^^
4444

45-
.. code:: Fortran
45+
.. code-block:: Fortran
4646
4747
USE mpi_f08
4848
MPI_Bcast(buffer, count, datatype, root, comm, ierror)
@@ -63,17 +63,17 @@ Fortran 2008 Syntax
6363
INPUT/OUTPUT PARAMETERS
6464
-----------------------
6565

66-
- ``buffer``: Starting address of buffer (choice).
67-
- ``count``: Number of entries in buffer (integer).
68-
- ``datatype``: Data type of buffer (handle).
69-
- ``root``: Rank of broadcast root (integer).
70-
- ``comm``: Communicator (handle).
66+
* ``buffer``: Starting address of buffer (choice).
67+
* ``count``: Number of entries in buffer (integer).
68+
* ``datatype``: Data type of buffer (handle).
69+
* ``root``: Rank of broadcast root (integer).
70+
* ``comm``: Communicator (handle).
7171

7272
OUTPUT PARAMETERS
7373
-----------------
7474

75-
- ``request``: Request (handle, non-blocking only).
76-
- ``IERROR``: Fortran only: Error status (integer).
75+
* ``request``: Request (handle, non-blocking only).
76+
* ``IERROR``: Fortran only: Error status (integer).
7777

7878
DESCRIPTION
7979
-----------
@@ -95,7 +95,7 @@ are still allowed.
9595
**Example:** Broadcast 100 ints from process 0 to every process in the
9696
group.
9797

98-
.. code:: C
98+
.. code-block:: C
9999
100100
MPI_Comm comm;
101101
int array[100];

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SYNTAX
1313
C Syntax
1414
^^^^^^^^
1515

16-
.. code:: c
16+
.. code-block:: c
1717
1818
#include <mpi.h>
1919
@@ -23,7 +23,7 @@ C Syntax
2323
Fortran Syntax
2424
^^^^^^^^^^^^^^
2525

26-
.. code:: fortran
26+
.. code-block:: fortran
2727
2828
USE MPI
2929
! or the older form: INCLUDE 'mpif.h'
@@ -35,7 +35,7 @@ Fortran Syntax
3535
Fortran 2008 Syntax
3636
^^^^^^^^^^^^^^^^^^^
3737

38-
.. code:: fortran
38+
.. code-block:: fortran
3939
4040
USE mpi_f08
4141
MPI_Bsend(buf, count, datatype, dest, tag, comm, ierror)
@@ -48,17 +48,17 @@ Fortran 2008 Syntax
4848
INPUT PARAMETERS
4949
----------------
5050

51-
- ``buf`` : Initial address of send buffer (choice).
52-
- ``count`` : Number of entries in send buffer (nonnegative integer).
53-
- ``datatype`` : Datatype of each send buffer element (handle).
54-
- ``dest`` : Rank of destination (integer).
55-
- ``tag`` : Message tag (integer).
56-
- ``comm`` : Communicator (handle).
51+
* ``buf`` : Initial address of send buffer (choice).
52+
* ``count`` : Number of entries in send buffer (nonnegative integer).
53+
* ``datatype`` : Datatype of each send buffer element (handle).
54+
* ``dest`` : Rank of destination (integer).
55+
* ``tag`` : Message tag (integer).
56+
* ``comm`` : Communicator (handle).
5757

5858
OUTPUT PARAMETERS
5959
-----------------
6060

61-
- ``IERROR`` : Fortran only: Error status (integer).
61+
* ``IERROR`` : Fortran only: Error status (integer).
6262

6363
DESCRIPTION
6464
-----------
@@ -78,7 +78,7 @@ you are certain that the message has been received (not just that it
7878
should have been received). For example, this code does not allocate
7979
enough buffer space:
8080

81-
.. code:: c
81+
.. code-block:: c
8282
8383
MPI_Buffer_attach( b, n*sizeof(double) + MPI_BSEND_OVERHEAD );
8484
for (i=0; i<m; i++) {

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SYNTAX
1313
C Syntax
1414
^^^^^^^^
1515

16-
.. code:: C
16+
.. code-block:: C
1717
1818
#include <mpi.h>
1919
@@ -23,7 +23,7 @@ C Syntax
2323
Fortran Syntax
2424
^^^^^^^^^^^^^^
2525

26-
.. code:: Fortran
26+
.. code-block:: Fortran
2727
2828
USE MPI
2929
! or the older form: INCLUDE 'mpif.h'
@@ -36,7 +36,7 @@ Fortran Syntax
3636
Fortran 2008 Syntax
3737
^^^^^^^^^^^^^^^^^^^
3838

39-
.. code:: Fortran
39+
.. code-block:: Fortran
4040
4141
USE mpi_f08
4242
@@ -51,18 +51,18 @@ Fortran 2008 Syntax
5151
INPUT PARAMETERS
5252
----------------
5353

54-
- buf : Initial address of send buffer (choice).
55-
- count : Number of elements sent (integer).
56-
- datatype : Type of each element (handle).
57-
- dest : Rank of destination (integer).
58-
- tag : Message tag (integer).
59-
- comm : Communicator (handle).
54+
* ``buf`` : Initial address of send buffer (choice).
55+
* ``count`` : Number of elements sent (integer).
56+
* ``datatype`` : Type of each element (handle).
57+
* ``dest`` : Rank of destination (integer).
58+
* ``tag`` : Message tag (integer).
59+
* ``comm`` : Communicator (handle).
6060

6161
OUTPUT PARAMETERS
6262
-----------------
6363

64-
- request : Communication request (handle).
65-
- IERROR : Fortran only: Error status (integer).
64+
* ``request`` : Communication request (handle).
65+
* ``IERROR`` : Fortran only: Error status (integer).
6666

6767
DESCRIPTION
6868
-----------

0 commit comments

Comments
 (0)