-
Notifications
You must be signed in to change notification settings - Fork 906
MPI_T: provide a stub implementation of events #13086
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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,7 @@ | ||
* ``MPI_T_ERR_NOT_INITIALIZED``: The MPI Tools interface is not initialized. | ||
|
||
* ``MPI_T_ERR_INVALID_HANDLE``: The handle is invalid. | ||
|
||
* ``MPI_T_ERR_INVALID_HANDLE``: Invalid use of the interface or bad parameter values(s). | ||
|
||
* ``MPI_T_ERR_OTHER``: Other error |
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_t_event_callback_get_info: | ||
|
||
|
||
MPI_T_event_callback_get_info | ||
============================= | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_T_event_callback_get_info` |mdash| Returns a new info object containing the hints of the callback function registered for the callback safety level specified by cb_safety of the event-registration handle associated with event_registration. | ||
|
||
SYNTAX | ||
------ | ||
|
||
|
||
C Syntax | ||
^^^^^^^^ | ||
|
||
.. code-block:: c | ||
|
||
#include <mpi.h> | ||
|
||
int MPI_T_event_callback_get_info(MPI_T_event_registration event_registration, | ||
MPI_T_cb_safety cb_safety, MPI_Info *info_used) | ||
|
||
|
||
INPUT PARAMETERS | ||
---------------- | ||
* ``event_registration``: Event registration | ||
* ``cb_safety``: maximum callback safety level | ||
|
||
OUTPUT PARAMETERS | ||
----------------- | ||
|
||
* ``info_used``: Info argument | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_T_event_callback_get_info` returns a new info object containing the | ||
hints of the callback function registered for the callback safety level specified by ``cb_safety`` of | ||
the event-registration handle associated with ``event_registration``. | ||
|
||
|
||
ERRORS | ||
------ | ||
|
||
:ref:`MPI_T_event_callback_get_info` will fail if: | ||
|
||
.. include:: ./MPI_T_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,43 @@ | ||
.. _mpi_t_event_callback_set_info: | ||
|
||
|
||
MPI_T_event_callback_set_info | ||
============================= | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_T_event_callback_set_info` |mdash| Updates the hints of the callback function registered for the callback safety level specified by cb_safety of the event-registration handle associated with event_registration. | ||
|
||
SYNTAX | ||
------ | ||
|
||
|
||
C Syntax | ||
^^^^^^^^ | ||
|
||
.. code-block:: c | ||
|
||
#include <mpi.h> | ||
|
||
int MPI_T_event_callback_set_info(MPI_T_event_registration event_registration, | ||
MPI_T_cb_safety cb_safety, MPI_Info info) | ||
|
||
|
||
INPUT PARAMETERS | ||
---------------- | ||
* ``event_registration``: Event registration | ||
* ``cb_safety``: maximum callback safety level | ||
* ``info``: Info argument | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_T_event_callback_set_info` Updates the hints of the callback function registered for the callback safety level specified by ``cb_safety`` of the event-registration handle associated with event_registration. | ||
|
||
|
||
ERRORS | ||
------ | ||
|
||
:ref:`MPI_T_event_callback_set_info` will fail if: | ||
|
||
.. include:: ./MPI_T_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,47 @@ | ||
.. _mpi_t_event_copy: | ||
|
||
|
||
MPI_T_event_copy | ||
================ | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_T_event_copy` |mdash| Copy event data as a whole into a user-specified buffer. | ||
|
||
|
||
SYNTAX | ||
------ | ||
|
||
|
||
C Syntax | ||
^^^^^^^^ | ||
|
||
.. code-block:: c | ||
|
||
#include <mpi.h> | ||
|
||
int MPI_T_event_copy(MPI_T_event_instance event_instance, void *buffer) | ||
|
||
|
||
INPUT PARAMETERS | ||
---------------- | ||
* ``event_instance``: event-instance handle provided to the callback function. | ||
* ``buf``: pointer to a memory location to store the event data. | ||
hppritcha marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_T_event_copy` copies the event data as a whole into the user-provided buffer. | ||
The user must assure that the buffer is of at least the size of the extent of the event | ||
type, which can be computed from the type and displacement information returned by the | ||
corresponding call to :ref:`MPI_T_event_get_info`. | ||
|
||
ERRORS | ||
------ | ||
|
||
:ref:`MPI_T_event_copy` will fail if: | ||
|
||
.. include:: ./MPI_T_ERRORS.rst | ||
|
||
.. seealso:: | ||
* :ref:`MPI_T_event_read` |
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_t_event_get_index: | ||
|
||
|
||
MPI_T_event_get_index | ||
===================== | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_T_event_get_index` |mdash| Query the index of an event type identified by a known event type name | ||
|
||
|
||
SYNTAX | ||
------ | ||
|
||
|
||
C Syntax | ||
^^^^^^^^ | ||
|
||
.. code-block:: c | ||
|
||
#include <mpi.h> | ||
|
||
int MPI_T_event_get_index(const char *name, int *event_index) | ||
|
||
|
||
INPUT PARAMETERS | ||
----------------- | ||
|
||
* ``name``: name of the event type | ||
|
||
OUTPUT PARAMETERS | ||
----------------- | ||
|
||
* ``event_index``: index of the event type | ||
|
||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_T_event_get_index` can be used to query for the index of an event type identified by a known | ||
event type name. | ||
|
||
ERRORS | ||
------ | ||
|
||
:ref:`MPI_T_event_get_index` will fail if: | ||
|
||
* ``MPI_T_ERR_NOT_INITIALIZED``: The MPI Tools interface is not | ||
initialized | ||
|
||
* ``MPI_T_ERR_INVALID_NAME``: The event name is invalid | ||
initialized |
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,67 @@ | ||
.. _mpi_t_event_get_info: | ||
|
||
|
||
MPI_T_event_get_info | ||
==================== | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_T_event_get_info` |mdash| Returns additional information about a specific event type | ||
|
||
|
||
SYNTAX | ||
------ | ||
|
||
|
||
C Syntax | ||
^^^^^^^^ | ||
|
||
.. code-block:: c | ||
|
||
#include <mpi.h> | ||
|
||
int MPI_T_event_get_info(int event_index, char *name, int *name_len, | ||
int *verbosity, MPI_Datatype array_of_datatypes[], | ||
MPI_Aint array_of_displacements[], int *num_elements, | ||
MPI_T_enum *enumtype, MPI_Info *info, char *desc, | ||
int *desc_len, int *bind) | ||
|
||
INPUT PARAMETERS | ||
---------------- | ||
* ``event_index``: Index of the event to be queried. | ||
|
||
INPUT/OUTPUT PARAMETERS | ||
----------------------- | ||
* ``name_len``: Length of the string and/or buffer for name. | ||
* ``desc_len``: Length of the string and/or buffer for desc. | ||
* ``num_elements``: length of array of datatypes and displacements. | ||
|
||
OUTPUT PARAMETERS | ||
----------------- | ||
* ``name``: Buffer to return the string containing the name of the event type. | ||
* ``verbosity``: Verbosity level of this event type | ||
* ``array_of_datatypes``: Array of MPI basic datatypes used to encode the event data | ||
* ``array_of_displacements``: Array of byte displacements of the elements in the event buffer | ||
* ``enumtype``: Optional descriptor for enumeration information | ||
* ``info``: Optional info argument. | ||
* ``desc``: Buffer to return the string containing the description of the event type. | ||
* ``bind``: Type of MPI object to which an event of this type must be bound | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_T_event_get_info` can be used to query information from for a specific event type. | ||
|
||
|
||
ERRORS | ||
------ | ||
|
||
:ref:`MPI_T_event_get_info` will fail if: | ||
|
||
* ``MPI_T_ERR_NOT_INITIALIZED``: The MPI Tools interface not initialized | ||
|
||
* ``MPI_T_ERR_INVALID_INDEX``: The source index is invalid | ||
|
||
* ``MPI_T_ERR_INVALID``: Invalid use of the interface or bad parameter values(s). | ||
|
||
* ``MPI_ERR_OTHER``: Other error |
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.