PAPI_get_component_index(3)

PAPI_get_component_index3

Returns the component index for the named component

Detailed Description

Return values

ENOCMP component does not exist

Parameters

name name of component to find index for

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.

See also

PAPI_get_event_component

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Author

Generated automatically by Doxygen for PAPI from the source code.

From libpapi-dev 7.1.0-5+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.