Hi,
I am just trying to get some h/w counts on intel core i7. I tried the following simple test code:
#include "papi.h"
#include <stdio.h>
int main(){
int retval,EventSet= PAPI_NULL;
retval = PAPI_library_init(PAPI_VER_CURRENT);
retval = PAPI_create_eventset(&EventSet);
int Eventcode;
retval = PAPI_event_name_to_code("PAPI_L1_DCH",&Eventcode);
retval = PAPI_add_event(EventSet,Eventcode);
if(retval){
printf("erorrrrrrrr=%d\n",retval);
}
return 0;
}
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?
Thanks.