Getting conflict error on intel core i7

Open discussion of PAPI.

Getting conflict error on intel core i7

Postby nf14 » Tue Mar 09, 2010 11:49 am


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);

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?

Posts: 4
Joined: Sun Feb 14, 2010 2:36 am

Re: Getting conflict error on intel core i7

Postby jagode00 » Tue Mar 09, 2010 12:24 pm

It appears that the event you are trying to count "PAPI_L1_DCH" is not available on i7. You can check the availability of all predefined events by running the PAPI utility papi_avail. If you replace PAPI_L1_DCH with a preset event that is available then you shouldn't get an error.

You can also try to use a native event to count the L1 data cache hits. The utility papi_native_avail lists all available native events on your machine.

Posts: 41
Joined: Tue Aug 25, 2009 2:12 pm

Re: Getting conflict error on intel core i7

Postby joshi » Sun Jun 20, 2010 8:33 am

Are there any other events not available on i7 that are available on other processors? Or is there a source which lists them (the differences)?
Posts: 1
Joined: Sun Jun 20, 2010 8:27 am

Return to General discussion (read-only)

Who is online

Users browsing this forum: No registered users and 1 guest