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

Return the number of events in an event set. More...

Detailed Description

PAPI_num_events() returns the number of preset and/or native events contained in an event set. The event set should be created by PAPI_create_eventset .

C Interface:
#include <papi.h>
int PAPI_num_events(int EventSet );
Parameters
[in]EventSet– an integer handle for a PAPI event set created by PAPI_create_eventset.
[out]*count– (Fortran only) On output the variable contains the number of events in the event set
Return values
Onsuccess, this function returns the positive number of events in the event set.
PAPI_EINVALThe event count is zero; only if code is compiled with debug enabled.
PAPI_ENOEVSTThe EventSet specified does not exist.
Example
* // Count the events in our EventSet
* printf(\"%d events found in EventSet.\\n\", PAPI_num_events(EventSet));
*
See Also
PAPI_add_event
PAPI_create_eventset

The documentation for this class was generated from the following file: