-
Notifications
You must be signed in to change notification settings - Fork 911
add support for request_get_status_any/all/some #13279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
edgargabriel
wants to merge
9
commits into
open-mpi:main
Choose a base branch
from
edgargabriel:topic/request-status-mult
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
68c65ef
mpi: add request_get_status_all/any/some
edgargabriel 672d82d
docs: add man-pages for new functions
edgargabriel decf95f
c-bindings: add support for const request args
hppritcha b10b231
request_get_status variants: add f08 interfaces
hppritcha 9637b17
use-mpi-ignore: start using binding infrastructure
hppritcha 0b5f3d8
request_get_status_mult: add f77 functions
hppritcha 6d53c66
fortran: PR feedback
hppritcha 115a438
mpi: incorporate review comments
edgargabriel f326157
update addressing comments on the PR.
edgargabriel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. _mpi_request_get_status_all: | ||
|
||
|
||
MPI_Request_get_status_all | ||
========================== | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_Request_get_status_all` |mdash| Access information associated with an | ||
array of requests without freeing the requests. | ||
|
||
.. The following file was automatically generated | ||
.. include:: ./bindings/mpi_request_get_status_all.rst | ||
|
||
INPUT PARAMETERS | ||
---------------- | ||
* ``count``: List length (non-negative integer) | ||
* ``array_of_requests``: Array of requests (array of handles). | ||
|
||
OUTPUT PARAMETERS | ||
----------------- | ||
* ``flag``: Boolean flag, same as from :ref:`MPI_Test` (logical). | ||
* ``array_of_statuses``: Array of ``MPI_Status`` objects if flag is true (array of status). | ||
* ``ierror``: Fortran only: Error status (integer). | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_Request_get_status_all` sets ``flag = true`` if all | ||
operations associated with *active* handles in the array have completed. | ||
In this case, each status entry that corresponds to an active request | ||
is set to the status of the corresponding operation. It | ||
does not deallocate or deactivate the request; a subsequent call to | ||
any of the MPI test, wait, or free routines should be executed with each | ||
of those requests. | ||
|
||
Each status entry that corresponds to a null or inactive handle is set | ||
to empty. Otherwise, ``flag = false`` is returned and the values of the | ||
status entries are undefined. | ||
|
||
If your application does not need to examine the *status* field, you can | ||
save resources by using the predefined constant ``MPI_STATUSES_IGNORE`` as a | ||
special value for the ``array_of_statuses`` argument. | ||
|
||
|
||
ERRORS | ||
------ | ||
|
||
.. include:: ./ERRORS.rst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.. _mpi_request_get_status_any: | ||
|
||
|
||
MPI_Request_get_status_any | ||
========================== | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_Request_get_status_any` |mdash| Access information associated with an | ||
array of requests without freeing the requests. | ||
|
||
.. The following file was automatically generated | ||
.. include:: ./bindings/mpi_request_get_status_any.rst | ||
|
||
INPUT PARAMETERS | ||
---------------- | ||
* ``count``: List length (non-negative integer) | ||
* ``array_of_requests``: Array of requests (array of handles). | ||
|
||
OUTPUT PARAMETERS | ||
----------------- | ||
* ``index``: Index of operation that completed (integer). | ||
* ``flag``: Boolean flag, same as from :ref:`MPI_Test` (logical). | ||
* ``status``: ``MPI_Status`` object if flag is true (status). | ||
* ``ierror``: Fortran only: Error status (integer). | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_Request_get_status_any` sets ``flag = true`` if either one | ||
of the operations associated with active handles has completed. In | ||
this case it returns in ``index`` the index of this request in the | ||
array and the status of the operation in ``status``. It does not | ||
deallocate or deactivate the request; a subsequent call to any of the MPI | ||
test, wait, or free routines should be executed with that request. | ||
|
||
If no operation completed, it returns ``flag = false`` and a value of | ||
``MPI_UNDEFINED`` in ``index``. ``status`` is undefined in this | ||
scenario. | ||
|
||
If ``array_of_requests`` contains no active handles then the call | ||
returns immediately with ``flag = true``, ``index = MPI_UNDEFINED``, | ||
and an empty status. | ||
|
||
If your application does not need to examine the *status* field, you can | ||
save resources by using the predefined constant ``MPI_STATUS_IGNORE`` as a | ||
special value for the ``status`` argument. | ||
|
||
|
||
ERRORS | ||
------ | ||
|
||
.. include:: ./ERRORS.rst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. _mpi_request_get_status_some: | ||
|
||
|
||
MPI_Request_get_status_some | ||
=========================== | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_Request_get_status_some` |mdash| Access information associated with an | ||
array of requests without freeing the requests. | ||
|
||
.. The following file was automatically generated | ||
.. include:: ./bindings/mpi_request_get_status_some.rst | ||
|
||
INPUT PARAMETERS | ||
---------------- | ||
* ``incount``: List length (non-negative integer). | ||
* ``array_of_requests``: Array of requests (array of handles). | ||
|
||
OUTPUT PARAMETERS | ||
----------------- | ||
* ``outcount``: Number of completed requests (integer). | ||
* ``array_of_indices``: Array of indices of operations that completed (array of integers). | ||
* ``array_of_statuses``: Array of ``MPI_Status`` objects for operations that completed (array of status). | ||
* ``ierror``: Fortran only: Error status (integer). | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_Request_get_status_some` returns in outcount the number of | ||
requests from the list ``array_of_requests`` that have completed. The | ||
first ``outcount`` locations of the array ``array_of_indices`` and | ||
``array_of_statuses`` will contain the indices of the operations | ||
within the array ``array_of_requests`` and the status of these | ||
operations respectively. The array is indexed from zero in C and from | ||
one in Fortran. It does not deallocate or deactivate the request; a | ||
subsequent call to any of the MPI test, wait, or free routines should be | ||
executed with each completed request. | ||
|
||
If no operation in ``array_of_requests`` is complete, it returns | ||
``outcount = 0``. If all operations in ``array_of_requests`` are either | ||
``MPI_REQUEST_NULL`` or inactive, ``outcount`` will be set to ``MPI_UNDEFINED``. | ||
|
||
If your application does not need to examine the *status* field, you can | ||
save resources by using the predefined constant ``MPI_STATUSES_IGNORE`` as a | ||
special value for the ``array_of_statuses`` argument. | ||
|
||
|
||
ERRORS | ||
------ | ||
|
||
.. include:: ./ERRORS.rst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.