-
Notifications
You must be signed in to change notification settings - Fork 897
MPI_T_Events: but wait there is more! #13197
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
hppritcha
merged 1 commit into
open-mpi:main
from
hppritcha:oops_missing_event_functions
Apr 21, 2025
Merged
Changes from all commits
Commits
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.. _mpi_t_category_get_events: | ||
|
||
|
||
MPI_T_category_get_events | ||
========================= | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_T_category_get_events` |mdash| Query which events are in a | ||
category | ||
|
||
|
||
SYNTAX | ||
------ | ||
|
||
|
||
C Syntax | ||
^^^^^^^^ | ||
|
||
.. code-block:: c | ||
|
||
#include <mpi.h> | ||
|
||
int MPI_T_category_get_events(int cat_index, int len, int indices[]) | ||
|
||
|
||
INPUT PARAMETERS | ||
---------------- | ||
* ``cat_index``: Index of the category to be queried. | ||
* ``len``: The length of the indices array. | ||
|
||
OUTPUT PARAMETERS | ||
----------------- | ||
* ``indices``: An integer array of size len, indicating event indices. | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_T_category_get_events` can be used to query which events | ||
are contained in a particular category. | ||
|
||
|
||
ERRORS | ||
------ | ||
|
||
:ref:`MPI_T_category_get_events` will fail if: | ||
|
||
* ``MPI_T_ERR_NOT_INITIALIZED``: The MPI Tools interface not initialized | ||
|
||
* ``MPI_T_ERR_INVALID_INDEX``: The category index is invalid |
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_category_get_num_events: | ||
|
||
|
||
MPI_T_category_get_num_events | ||
============================= | ||
|
||
.. include_body | ||
|
||
:ref:`MPI_T_category_get_num_events` |mdash| Query returns the number of event types contained | ||
in the queried category. | ||
|
||
|
||
SYNTAX | ||
------ | ||
|
||
|
||
C Syntax | ||
^^^^^^^^ | ||
|
||
.. code-block:: c | ||
|
||
#include <mpi.h> | ||
|
||
int MPI_T_category_get_num_events(int cat_index, int *num_events) | ||
|
||
|
||
INPUT PARAMETERS | ||
---------------- | ||
* ``cat_index``: Index of the category to be queried | ||
|
||
OUTPUT PARAMETERS | ||
----------------- | ||
* ``num_events``: Number of event types in the category | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
:ref:`MPI_T_category_get_num_events` can be used to query the number of events | ||
contained in the category. | ||
|
||
|
||
ERRORS | ||
------ | ||
|
||
:ref:`MPI_T_category_get_num_events` will fail if: | ||
|
||
* ``MPI_T_ERR_NOT_INITIALIZED``: The MPI Tools interface not 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
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,40 @@ | ||
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ | ||
/* | ||
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights | ||
* reserved. | ||
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. | ||
* Copyright (c) 2017 IBM Corporation. All rights reserved. | ||
* Copyright (c) 2020 The University of Tennessee and The University | ||
* of Tennessee Research Foundation. All rights | ||
* reserved. | ||
* Copyright (c) 2021 Amazon.com, Inc. or its affiliates. All Rights | ||
* reserved. | ||
* Copyright (c) 2025 Triad National Security, LLC. All rights | ||
* reserved. | ||
* $COPYRIGHT$ | ||
* | ||
* Additional copyrights may follow | ||
* | ||
* $HEADER$ | ||
*/ | ||
|
||
#include "ompi_config.h" | ||
|
||
#include "ompi/mpi/tool/mpit-internal.h" | ||
|
||
#if OMPI_BUILD_MPI_PROFILING | ||
#if OPAL_HAVE_WEAK_SYMBOLS | ||
#pragma weak MPI_T_category_get_events = PMPI_T_category_get_events | ||
#endif | ||
#define MPI_T_category_get_events PMPI_T_category_get_events | ||
#endif | ||
|
||
int MPI_T_category_get_events(int cat_index, int len, int indices[]) | ||
{ | ||
int rc = MPI_SUCCESS; | ||
|
||
if (!mpit_is_initialized ()) { | ||
return MPI_T_ERR_NOT_INITIALIZED; | ||
} | ||
return rc; | ||
} |
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,45 @@ | ||
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ | ||
/* | ||
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights | ||
* reserved. | ||
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. | ||
* Copyright (c) 2017 IBM Corporation. All rights reserved. | ||
* Copyright (c) 2020 The University of Tennessee and The University | ||
* of Tennessee Research Foundation. All rights | ||
* reserved. | ||
* Copyright (c) 2021 Amazon.com, Inc. or its affiliates. All Rights | ||
* reserved. | ||
* Copyright (c) 2025 Triad National Security, LLC. All rights | ||
* reserved. | ||
* $COPYRIGHT$ | ||
* | ||
* Additional copyrights may follow | ||
* | ||
* $HEADER$ | ||
*/ | ||
|
||
#include "ompi_config.h" | ||
|
||
#include "ompi/mpi/tool/mpit-internal.h" | ||
|
||
#if OMPI_BUILD_MPI_PROFILING | ||
#if OPAL_HAVE_WEAK_SYMBOLS | ||
#pragma weak MPI_T_category_get_num_events = PMPI_T_category_get_num_events | ||
#endif | ||
#define MPI_T_category_get_num_events PMPI_T_category_get_num_events | ||
#endif | ||
|
||
int MPI_T_category_get_num_events (int cat_index, int *num_events) | ||
{ | ||
if (!mpit_is_initialized ()) { | ||
return MPI_T_ERR_NOT_INITIALIZED; | ||
} | ||
|
||
if (MPI_PARAM_CHECK && NULL == num_events) { | ||
return MPI_T_ERR_INVALID; | ||
} | ||
|
||
*num_events = 0; | ||
|
||
return MPI_SUCCESS; | ||
} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to update this PR or #13179, depending on who merges first (i.e., generate the bindings that appear in the man pages).