Page 1 of 1

PAPI and hypertransport

PostPosted: Thu Jun 23, 2011 10:13 am
by abuttari
Hello,
I am trying to measure how good the memory locality of a code is on a NUMA machine. While searching, I came across this page:

http://www.nic.uoregon.edu/tau-wiki/Gui ... A_Analysis

and I thought it may be exactly what I need to do.
So I installed

libpfm-3.10
pdtoolkit-3.16
papi-4.1.3
tau-2.20.2

On my x86_64 AMD machine with 4 Six-Core AMD Opteron(tm) Processor 8431 and 2.6.32 kernel.

However, when I try to profile my executable, I get the following error:

TAU: Error: Counter HT_LR_MEM_XFR is not available!

I believe this error is related to PAPI, isn't it?
Can anybody tell me how to solve this problem?

Thanks in advance

Alfredo

Re: PAPI and hypertransport

PostPosted: Thu Jun 23, 2011 10:59 am
by danterpstra
Run utils/papi_native_avail and see if that event exists for your cpu.

Re: PAPI and hypertransport

PostPosted: Thu Jun 23, 2011 3:45 pm
by abuttari
Hello Dan,
nope, apparently this event is not available on my system. Is it any different than

HYPERTRANSPORT_LINK(x):DATA_DWORD_SENT

?

thanks

alfredo

Re: PAPI and hypertransport

PostPosted: Thu Jun 23, 2011 4:07 pm
by danterpstra
Hi Alfredo!
The Hypertransport events were in high flux across various releases of Opteron chips.Hard to say what chip supports what events. Your best bet is to read the AMD documentation , and even then, don't bet too much! ;)
You might try a more recent kernel with better perf events support, or try patching with perfctr, which has pretty good support for hypertransport events.
In any event (pun intended) YMMV...
- dan

Re: PAPI and hypertransport

PostPosted: Fri Jun 24, 2011 3:00 am
by abuttari
Thanks for the tips Dan,
hopefully I'll manage to make some sense out of my code's performance :-)

Ciao
Alfredo