PAPI  5.4.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PAPI_get_component_index Class Reference

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

Detailed Description

@retval ENOCMP
    component does not exist

@param name
           name of component to find index for
@par Examples:
int cidx;
cidx = PAPI_get_component_index("cuda");
if (cidx==PAPI_OK) {
printf("The CUDA component is cidx %d\n",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: