NAME
PAPI_num_hwctrs - return the number of hardware counters
CONTENTS
Synopsis
Description
Arguments
Return Values
Examples
Bugs
See Also
SYNOPSIS
C Interface
#include <papi.h>
int PAPI_num_hwctrs();
Fortran Interface
#include fpapi.h
PAPIF_num_hwctrs(C_INT num)
DESCRIPTION
PAPI_num_hwctrs() returns the number of physical hardware
counters present in the processor. This count does not include any
special purpose registers or performance hardware.
PAPI_library_init (3) must be called
in order for this function to return anything greater than 0.
ARGUMENTS
This function takes no arguments.
RETURN VALUES
On success, this function returns a value greater than zero.
A zero result usually means the library has not been initialized.
EXAMPLES
/* Query the substrate for our resources. */
printf("%d hardware counters found.0, PAPI_num_hwctrs());
BUGS
None.
SEE ALSO
PAPI_library_init (3),
PAPI (3),
PAPI_F (3)
PAPI Programmers Reference | PAPI_num_hwctrs (3) | September, 2004 |
|
|