PAPI_num_counters(3) | PAPI | PAPI_num_counters(3) |
PAPI_num_counters -
Get the number of hardware counters available on the system.
@par C Interface: int PAPI_num_counters( void );
Postcondition:
Return values:
Examples:
* int num_hwcntrs; * // The installation does not support PAPI * if ((num_hwcntrs = PAPI_num_counters()) < 0 ) * handle_error(1); * // The installation supports PAPI, but has no counters * if ((num_hwcntrs = PAPI_num_counters()) == 0 ) * fprintf(stderr,"Info:: This machine does not provide hardware counters.0); *
PAPI_num_counters() returns the optimal length of the values array for the high level functions. This value corresponds to the number of hardware counters supported by the current CPU component.
Note:
Generated automatically by Doxygen for PAPI from the source code.
Fri Feb 22 2019 | Version 5.7.0.0 |