papi_num_components(3) - Linux man page

Name

PAPI_num_components - return the number of components currently installed

Synopsis

C Interface
#include <papi.h>int PAPI_num_components();

Description

PAPI_num_components() returns the number of counting components installed in the library.

Arguments

This function takes no arguments.

Return Values

This function returns a value greater than zero.

Examples

/* Query the library for a component count. */
printf("%d components installed.0, PAPI_num_components());

Bugs

None.

See Also

papi(3)