Skip to content

Commit 723b84e

Browse files
committed
docs: add man-pages for new functions
add the man pages for the newly implemented MPI_Request_get_status_all/any/some functions. Signed-off-by: Edgar Gabriel <[email protected]>
1 parent ef53524 commit 723b84e

5 files changed

+159
-0
lines changed

docs/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ OMPI_MAN3 = \
387387
MPI_Request_f2c.3 \
388388
MPI_Request_free.3 \
389389
MPI_Request_get_status.3 \
390+
MPI_Request_get_status_all.3 \
391+
MPI_Request_get_status_any.3 \
392+
MPI_Request_get_status_some.3 \
390393
MPI_Rget.3 \
391394
MPI_Rget_accumulate.3 \
392395
MPI_Rput.3 \
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.. _mpi_request_get_status_all:
2+
3+
4+
MPI_Request_get_status_all
5+
==========================
6+
7+
.. include_body
8+
9+
:ref:`MPI_Request_get_status_all` |mdash| Access information associated with a
10+
request without freeing the request.
11+
12+
.. The following file was automatically generated
13+
.. include:: ./bindings/mpi_request_get_status_all.rst
14+
15+
INPUT PARAMETER
16+
---------------
17+
* ``count``: List length (non-negative integer)
18+
* ``array_of_requests``: Array of requests (array of handles).
19+
20+
OUTPUT PARAMETERS
21+
-----------------
22+
* ``flag``: Boolean flag, same as from :ref:`MPI_Test` (logical).
23+
* ``array_of_statuses``: Array of ``MPI_Status`` objects if flag is true (array of status).
24+
* ``ierror``: Fortran only: Error status (integer).
25+
26+
DESCRIPTION
27+
-----------
28+
29+
:ref:`MPI_Request_get_status_all` sets ``flag = true`` if all
30+
operations associated with *active* handles in the array have completed.
31+
In this case, each status entry that corresponds to an active request
32+
is set to the status of the corresponding operation. It
33+
does not deallocate or deactivate the request; a subsequent call to
34+
test, wait, or free should be executed with each of those requests.
35+
36+
Each status entry that corresponds to a null or inactive handle is set
37+
to empty. Otherwise, ``flag = false`` is returned and the values of the
38+
status entries are undefined.
39+
40+
If your application does not need to examine the *status* field, you can
41+
save resources by using the predefined constant ``MPI_STATUS_IGNORE`` as a
42+
special value for the ``array_of_statuses`` argument.
43+
44+
45+
ERRORS
46+
------
47+
48+
.. include:: ./ERRORS.rst
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
.. _mpi_request_get_status_any:
2+
3+
4+
MPI_Request_get_status_any
5+
==========================
6+
7+
.. include_body
8+
9+
:ref:`MPI_Request_get_status_any` |mdash| Access information associated with a
10+
request without freeing the request.
11+
12+
.. The following file was automatically generated
13+
.. include:: ./bindings/mpi_request_get_status_any.rst
14+
15+
INPUT PARAMETER
16+
---------------
17+
* ``count``: List length (non-negative integer)
18+
* ``array_of_requests``: Array of requests (array of handles).
19+
20+
OUTPUT PARAMETERS
21+
-----------------
22+
* ``index``: Index of operation that completed (integer).
23+
* ``flag``: Boolean flag, same as from :ref:`MPI_Test` (logical).
24+
* ``status``: ``MPI_Status`` object if flag is true (status).
25+
* ``ierror``: Fortran only: Error status (integer).
26+
27+
DESCRIPTION
28+
-----------
29+
30+
:ref:`MPI_Request_get_status_any` sets ``flag = true`` if either one
31+
of the operations associated with active handles has completed. In
32+
this case it returns in ``index`` the index of this request in the
33+
array and the status of the operation in ``status``. It does not
34+
deallocate or deactivate the request; a subsequent call to test, wait,
35+
or free should be executed with that request.
36+
37+
If no operation completed, it returns ``flag = false`` and a value of
38+
``MPI_UNDEFINED`` in ``index``. ``status`` is undefined in this
39+
scenario.
40+
41+
If ``array_of_requests`` contains no active handles then the call
42+
returns immediately with ``flag = true``, ``index = MPI_UNDEFINED``,
43+
and an empty status.
44+
45+
If your application does not need to examine the *status* field, you can
46+
save resources by using the predefined constant ``MPI_STATUS_IGNORE`` as a
47+
special value for the ``status`` argument.
48+
49+
50+
ERRORS
51+
------
52+
53+
.. include:: ./ERRORS.rst
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
.. _mpi_request_get_status_some:
2+
3+
4+
MPI_Request_get_status_some
5+
===========================
6+
7+
.. include_body
8+
9+
:ref:`MPI_Request_get_status_some` |mdash| Access information associated with a
10+
request without freeing the request.
11+
12+
.. The following file was automatically generated
13+
.. include:: ./bindings/mpi_request_get_status_some.rst
14+
15+
INPUT PARAMETER
16+
---------------
17+
* ``incount``: List length (non-negative integer).
18+
* ``array_of_requests``: Array of requests (array of handles).
19+
20+
OUTPUT PARAMETERS
21+
-----------------
22+
* ``outcount``: Number of completed requests (integer).
23+
* ``array_of_indices``: Array of indices of operations that completed (array of integers).
24+
* ``array_of_statuses``: Array of ``MPI_Status`` objects for operations that completed (array of status).
25+
* ``ierror``: Fortran only: Error status (integer).
26+
27+
DESCRIPTION
28+
-----------
29+
30+
:ref:`MPI_Request_get_status_some` returns in outcount the number of
31+
requests from the list ``array_of_requests`` that have completed. The
32+
first ``outcount`` locations of the array ``array_of_indices`` and
33+
``array_of_statuses`` will contain the indices of the operations
34+
within the array ``array_of_requests`` and the status of these
35+
operations respectively. The array is indexed from zero in C and from
36+
one in Fortran. It does not deallocate or deactivate the request; a
37+
subsequent call to test, wait, or free should be executed with each completed
38+
request.
39+
40+
If no operation in ``array_of_requests`` is complete, it returns
41+
``outcount = 0``. If all operations in ``array_of_requests`` are either
42+
``MPI_REQUEST_NULL`` or inactive, ``outcount`` will be set to ``MPI_UNDEFINED``.
43+
44+
If your application does not need to examine the *status* field, you can
45+
save resources by using the predefined constant ``MPI_STATUS_IGNORE`` as a
46+
special value for the ``array_of_statuses`` argument.
47+
48+
49+
ERRORS
50+
------
51+
52+
.. include:: ./ERRORS.rst

docs/man-openmpi/man3/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ MPI API manual pages (section 3)
309309
MPI_Request_f2c.3.rst
310310
MPI_Request_free.3.rst
311311
MPI_Request_get_status.3.rst
312+
MPI_Request_get_status_all.3.rst
313+
MPI_Request_get_status_any.3.rst
314+
MPI_Request_get_status_some.3.rst
312315
MPI_Rget.3.rst
313316
MPI_Rget_accumulate.3.rst
314317
MPI_Rput.3.rst

0 commit comments

Comments
 (0)