Page 1 of 1

Help on PAPI 3.7.0 in Ubuntu 9.04

PostPosted: Fri Nov 20, 2009 11:06 am
by bkouk
I've already installed PAPI 3.7.0 in Ubuntu 9.04 with Kernel The perfex -i output is
PerfCtr Info:
abi_version 0x05020501
driver_version 2.6.39 DEBUG
cpu_type 16 (Intel Pentium 4 Model 3)
cpu_features 0x7 (rdpmc,rdtsc,pcint)
cpu_khz 3199857
tsc_to_cpu_mult 1
cpu_nrctrs 18
cpus [0,1], total: 2
cpus_forbidden [1], total: 1

When I run papi_avail I get something like that
127 available events, 0 are available 0 can derive

What does this exactly mean?

I patched the kernel with perfctr-2.6.x.
Thanks in advance.

Re: Help on PAPI 3.7.0 in Ubuntu 9.04

PostPosted: Fri Nov 20, 2009 2:02 pm
by Dan Terpstra
This generally happens when the processor doesn't match any of the event definition tables found in the perfmon_events.csv file. In your case, the Pentium 4 is supported, but I suspect there's something about the name string that is preventing a match. One way to test this hypothesis is to recompile PAPI with debug turned on, and the enable debug output as shown below:

> configure --with-debug=yes
> make
> utils/papi_avail

You'll see a huge amount of output, including a list of match attempts with table names. I suspect the match will fail, but this should tell you (and us) what name is failing the match.

Re: Help on PAPI 3.7.0 in Ubuntu 9.04

PostPosted: Thu Nov 26, 2009 7:07 am
by bkouk
Thanks for your instructions, just mention that the equivalent of setenv PAPI_DEBUG SUBSTRATE in debian distributions is export PAPI_DEBUG=SUBSTRATE.
When I run papi_avail I get the same output as before, plus the following
SUBSTRATE:linux.c:_papi_hwd_get_system_info:785:3868 Executable is papi_avail
SUBSTRATE:linux.c:_papi_hwd_get_system_info:786:3868 Full Executable is /home/bill/Desktop/papi-3.7.0/src/utils/papi_avail
SUBSTRATE:linux.c:_papi_hwd_get_system_info:791:3868 Text: Start 0x8048000, End 0x80c4000, length 507904
SUBSTRATE:linux.c:_papi_hwd_get_system_info:796:3868 Data: Start 0x80c5000, End 0x80fa000, length 217088
SUBSTRATE:linux.c:_papi_hwd_get_system_info:801:3868 Bss: Start (nil), End (nil), length 0
SUBSTRATE:linux.c:_papi_hwd_get_system_info:901:3868 Found 2 GenuineIntel(-1) (4) CPU's at 2800.000000 Mhz.
SUBSTRATE:linux.c:_papi_hwd_init_substrate:248:3868 Hardware/OS does support counter generated interrupts
SUBSTRATE:linux.c:_papi_hwd_init:459:3868 _papi_hwd_init vperfctr_open() = 0xc9271b0
SUBSTRATE:linux.c:_papi_hwd_init:467:3868 close on exec 1

Re: Help on PAPI 3.7.0 in Ubuntu 9.04

PostPosted: Sun Oct 03, 2010 10:12 pm
by bkouk
I've installed PAPI 4.1.1 on Pentium 4. When I add events to eventset everything is ok. But when i stop counting to read the values I always get zero values. The kernel is the latest stable 2.35.7. I would appreciate it, if someone could explain me what's going wrong.
Thanks in advance.