Get the multiplexing status of specified event set.
More...
- C Interface:
- #include <papi.h>
int PAPI_get_multiplex( int EventSet );
- Fortran Interface:
- #include fpapi.h
PAPIF_get_multiplex( C_INT EventSet, C_INT check )
- Parameters
-
- Return values
-
PAPI_OK | |
PAPI_EINVAL | One or more of the arguments is invalid, or the EventSet is already multiplexed. |
PAPI_ENOEVST | The EventSet specified does not exist. |
PAPI_EISRUN | The EventSet is currently counting events. |
PAPI_ENOMEM | Insufficient memory to complete the operation. |
PAPI_get_multiplex tests the state of the PAPI_MULTIPLEXING flag in the specified event set, returning TRUE if a PAPI event set is multiplexed, or FALSE if not.
- Example:
int ret;
if (ret !=
PAPI_OK) handle_error(ret);
if (ret !=
PAPI_OK) handle_error(ret);
if (ret ==
TRUE) printf(
"This event set is ready for multiplexing\n.")
if (ret ==
FALSE) printf("This event set is not enabled for multiplexing\n.")
if (ret < 0) handle_error(ret);
printf("This event set already has multiplexing enabled\n");
Assign a component index to an existing but empty EventSet.
Create a new empty PAPI EventSet.
Get the multiplexing status of specified event set.
Convert a standard event set to a multiplexed event set.
- See also
- PAPI_multiplex_init
-
PAPI_set_opt
-
PAPI_create_eventset
The documentation for this class was generated from the following file: