Native counters

Open discussion of PAPI.

Native counters

Postby Andreas » Wed Sep 15, 2010 8:11 am

The question is how do i go about to measure the native events listed by papi_native_avail??

I have installed papi and i can measure most of the papi events that are available on my platform.
(I do catch some return codes and stuff but left it out here.)

PAPI_L1_DCA shows a correct count.

But when i enter "L2_RQSTS" instead i get the error: 'L2_RQSTS' undeclared (first use in this function) and this goes for all events that are listed
by papi_native_avail. If i enter 0x40000023 it runs but the values are wiered

When i use - i get - the response:
PAPI_L2_DCR i get 60676289
L2_RQSTS i get L2_RQSTS undeclared
0x40000023 i get 0

So the question is how do i go about to measure the native events listed by papi_native_avail??

*************************************************************
int events[1] = {PAPI_L1_DCA};
long_long values[1];

PAPI_start_counters(events, 1)
do stuff
PAPI_read_counters(values, 1)
printf("L1 data cache accesses %lld\n", values[0]);
*************************************************************

Best Regards
//Andreas
Andreas
 
Posts: 1
Joined: Wed Sep 15, 2010 7:39 am

Return to General discussion

Who is online

Users browsing this forum: alkamund, Rereesogy and 1 guest

cron