PAPI 7.1.0.0
Loading...
Searching...
No Matches
PAPI_get_component_index Class Reference

returns the component index for the named component More...

Detailed Description

Return values
ENOCMPcomponent does not exist
Parameters
namename of component to find index for
Examples:
int cidx;
if (cidx==PAPI_OK) {
printf("The CUDA component is cidx %d\n",cidx);
}
returns the component index for the named component
#define PAPI_OK
Definition: f90papi.h:73
static int cidx
PAPI_get_component_index() returns the component index of the named component. This is useful for finding out if a specified component exists.
Bug:
Doesn't work for preset events
See also
PAPI_get_event_component

The documentation for this class was generated from the following file: