Skip to content

Commit 5c15147

Browse files
committed
doc: removed deprecated function descriptions + fixes
Now the descriptions of the deprecated functions primarily exists in the favored functions. Added more cross-links in the documentation. Several typos are corrected and codifying constants here and there. Signed-off-by: Nick Papior <nickpapior@gmail.com>
1 parent 15d9690 commit 5c15147

20 files changed

+167
-249
lines changed

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

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -50,40 +50,6 @@ DESCRIPTION
5050
Note that use of this routine is *deprecated* as of MPI-2. Please use
5151
:ref:`MPI_Get_address` instead.
5252

53-
The address of a location in memory can be found by invoking this
54-
function. Returns the (byte) address of location.
55-
56-
Example: Using :ref:`MPI_Address` for an array.
57-
58-
.. code-block:: fortran
59-
60-
REAL A(100,100)
61-
62-
INTEGER I1, I2, DIFF
63-
CALL MPI_ADDRESS(A(1,1), I1, IERROR)
64-
CALL MPI_ADDRESS(A(10,10), I2, IERROR)
65-
DIFF = I2 - I1
66-
! The value of DIFF is 909*sizeof(real)
67-
!the values of I1 and I2 are implementation dependent.
68-
69-
70-
NOTES
71-
-----
72-
73-
This routine is provided for both Fortran and C programmers and may be
74-
useful when writing portable code. In the current release, the address
75-
returned by this routine will be the same as that produced by the C ``&``
76-
operator.
77-
78-
C users may be tempted to avoid using :ref:`MPI_Address` and rely on the
79-
availability of the address operator &. Note, however, that &
80-
cast-expression is a pointer, not an address. ANSI C does not require
81-
that the value of a pointer (or the pointer cast to int) be the absolute
82-
address of the object pointed at although this is commonly the case.
83-
Furthermore, referencing may not have a unique definition on machines
84-
with a segmented address space. The use of :ref:`MPI_Address` to "reference" C
85-
variables guarantees portability to such machines as well.
86-
8753

8854
ERRORS
8955
------

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,27 +50,6 @@ Note that use of this routine is *deprecated* as of MPI-2, and was
5050
*deleted* in MPI-3. Please use :ref:`MPI_Comm_delete_attr`. This function does
5151
not have a mpi_f08 binding.
5252

53-
Delete attribute from cache by key. This function invokes the attribute
54-
delete function delete_fn specified when the keyval was created. The
55-
call will fail if the delete_fn function returns an error code other
56-
than MPI_SUCCESS.
57-
58-
Whenever a communicator is replicated using the function :ref:`MPI_Comm_dup`,
59-
all callback copy functions for attributes that are currently set are
60-
invoked (in arbitrary order). Whenever a communicator is deleted using
61-
the function :ref:`MPI_Comm_free`, all callback delete functions for attributes
62-
that are currently set are invoked.
63-
64-
65-
NOTES
66-
-----
67-
68-
Note that it is not defined by the MPI standard what happens if the
69-
delete_fn callback invokes other MPI functions. In Open MPI, it is not
70-
valid for delete_fn callbacks (or any of their children) to add or
71-
delete attributes on the same object on which the delete_fn callback is
72-
being invoked.
73-
7453

7554
ERRORS
7655
------

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ Note that use of this routine is *deprecated* as of MPI-2, and was
5454
*deleted* in MPI-3. Please use :ref:`MPI_Comm_get_attr`. This function does not
5555
have a mpi_f08 binding.
5656

57-
Retrieves attribute value by key. The call is erroneous if there is no
58-
key with value keyval. On the other hand, the call is correct if the key
59-
value exists, but no attribute is attached on comm for that key; in such
60-
case, the call returns flag = false. In particular MPI_KEYVAL_INVALID is
61-
an erroneous key value.
62-
6357

6458
ERRORS
6559
------

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,6 @@ Note that use of this routine is *deprecated as of MPI-2, and* was
5151
deleted in MPI-3. Please use :ref:`MPI_Comm_set_attr`. This function does not
5252
have a mpi_f08 binding.
5353

54-
:ref:`MPI_Attr_put` stores the stipulated attribute value attribute_val for
55-
subsequent retrieval by :ref:`MPI_Attr_get`. If the value is already present,
56-
then the outcome is as if :ref:`MPI_Attr_delete` was first called to delete the
57-
previous value (and the callback function delete_fn was executed), and a
58-
new value was next stored. The call is erroneous if there is no key with
59-
value keyval; in particular MPI_KEYVAL_INVALID is an erroneous key
60-
value. The call will fail if the delete_fn function returned an error
61-
code other than MPI_SUCCESS.
62-
63-
64-
NOTES
65-
-----
66-
67-
Values of the permanent attributes MPI_TAG_UB, MPI_HOST, MPI_IO, and
68-
MPI_WTIME_IS_GLOBAL may not be changed.
69-
70-
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
72-
a single integer (not a pointer, since Fortran has no pointers and there
73-
are systems for which a pointer does not fit in an integer, e.g., any
74-
32-bit address system that uses 64 bits for Fortran DOUBLE PRECISION).
75-
76-
If an attribute is already present, the delete function (specified when
77-
the corresponding keyval was created) will be called.
78-
7954

8055
ERRORS
8156
------

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,5 @@ ERRORS
131131

132132
.. include:: ./ERRORS.rst
133133

134-
.. seealso:: :ref:`MPI`
134+
.. seealso::
135+
* :ref:`MPI_Comm_free_keyval`

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ DESCRIPTION
6464
:ref:`MPI_Comm_delete_attr` deletes an attribute from cache by key. This
6565
function invokes the attribute delete function ``delete_fn`` specified
6666
when the ``comm_keyval`` was created. The call will fail if the
67-
``delete_fn`` function returns an error code other than MPI_SUCCESS.``
67+
``delete_fn`` function returns an error code other than ``MPI_SUCCESS``.
68+
6869
Whenever a communicator is replicated using the function
6970
:ref:`MPI_Comm_dup`, all callback copy functions for attributes that are
7071
currently set are invoked (in arbitrary order). Whenever a communicator

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,6 @@ Key values are global (they can be used with any and all communicators).
8181
ERRORS
8282
------
8383
.. include:: ./ERRORS.rst
84+
85+
.. seealso::
86+
* :ref:`MPI_Comm_create_keyval`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ DESCRIPTION
6969
erroneous if there is no key with value *keyval*. On the other hand, the
7070
call is correct if the key value exists, but no attribute is attached on
7171
*comm* for that key; in that case, the call returns *flag* = false. In
72-
particular, MPI_KEYVAL_INVALID is an erroneous key value.
72+
particular, ``MPI_KEYVAL_INVALID`` is an erroneous key value.
7373

7474
This function replaces :ref:`MPI_Attr_get`, the use of which is deprecated. The
7575
C binding is identical. The Fortran binding differs in that

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,20 @@ with a communicator. This call is identical to :ref:`MPI_Errhandler_get`, the
6565
use of which is deprecated.
6666

6767

68+
Returns in errhandler (a handle to) the error handler that is currently
69+
associated with communicator ``comm``.
70+
71+
**Example:** A library function may register at its entry point the
72+
current error handler for a communicator, set its own private error
73+
handler for this communicator, and restore before exiting the previous
74+
error handler.
75+
76+
6877
ERRORS
6978
------
7079

7180
.. include:: ./ERRORS.rst
81+
82+
.. seealso::
83+
* :ref:`MPI_Comm_create_errhandler`
84+
* :ref:`MPI_Comm_set_errhandler`

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ DESCRIPTION
6767
:ref:`MPI_Comm_set_attr` stores the stipulated attribute value *attribute_val*
6868
for subsequent retrieval by :ref:`MPI_Comm_get_attr`. If the value is already
6969
present, then the outcome is as if :ref:`MPI_Comm_delete_attr` was first called
70-
to delete the previous value (and the callback function delete_fn was
70+
to delete the previous value (and the callback function ``delete_fn`` was
7171
executed), and a new value was next stored. The call is erroneous if
7272
there is no key with value *comm_keyval*; in particular
73-
MPI_KEYVAL_INVALID is an erroneous key value. The call will fail if the
74-
delete_fn function returned an error code other than MPI_SUCCESS.
73+
``MPI_KEYVAL_INVALID`` is an erroneous key value. The call will fail if the
74+
delete_fn function returned an error code other than ``MPI_SUCCESS``.
7575

7676
This function replaces :ref:`MPI_Attr_put`, the use of which is deprecated. The
7777
C binding is identical. The Fortran binding differs in that
@@ -96,8 +96,8 @@ length of the declared integer in bytes.
9696
NOTES
9797
-----
9898

99-
Values of the permanent attributes MPI_TAG_UB, MPI_HOST, MPI_IO, and
100-
MPI_WTIME_IS_GLOBAL may not be changed.
99+
Values of the permanent attributes ``MPI_TAG_UB``, ``MPI_HOST``, ``MPI_IO``, and
100+
``MPI_WTIME_IS_GLOBAL`` may not be changed.
101101

102102
The type of the attribute value depends on whether C or Fortran is being
103103
used. In C, an attribute value is a pointer (``void *``); in Fortran, it is

0 commit comments

Comments
 (0)