I am just trying to get some h/w counts on intel core i7. I tried the following simple test code:
int retval,EventSet= PAPI_NULL;
retval = PAPI_library_init(PAPI_VER_CURRENT);
retval = PAPI_create_eventset(&EventSet);
retval = PAPI_event_name_to_code("PAPI_L1_DCH",&Eventcode);
retval = PAPI_add_event(EventSet,Eventcode);
I am getting error -8, that is the conflict error? I am using PAPI 4.0.0. Why is this giving me a conflict error when I am only adding 1 event?