|
| 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 |
0 commit comments