PAPI 7.1.0.0
Loading...
Searching...
No Matches
PAPI_assign_eventset_component Class Reference

Assign a component index to an existing but empty EventSet. More...

Detailed Description

C Interface:
#include <papi.h>
PAPI_assign_eventset_component( int EventSet, int cidx );
Parameters
EventSetAn integer identifier for an existing EventSet.
cidxAn integer identifier for a component. By convention, component 0 is always the cpu component.
Return values
PAPI_ENOCMPThe argument cidx is not a valid component.
PAPI_ENOEVSTThe EventSet doesn't exist.
PAPI_ENOMEMInsufficient memory to complete the operation.

PAPI_assign_eventset_component assigns a specific component index, as specified by cidx, to a new EventSet identified by EventSet, as obtained from PAPI_create_eventset. EventSets are ordinarily automatically bound to components when the first event is added. This routine is useful to explicitly bind an EventSet to a component before setting component related options.

Examples:
handle_error( 1 );
// Bind our EventSet to the cpu component
handle_error( 1 );
// Convert our EventSet to multiplexing
handle_error( 1 );
Assign a component index to an existing but empty EventSet.
Create a new empty PAPI EventSet.
Convert a standard event set to a multiplexed event set.
#define PAPI_OK
Definition: f90papi.h:73
#define PAPI_NULL
Definition: f90papi.h:78
static int EventSet
Definition: init_fini.c:8
See also
PAPI_set_opt
PAPI_create_eventset
PAPI_add_events
PAPI_set_multiplex

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