Page 1 of 1

Help! PAPI 3.7.* on Ubuntu 9.10

PostPosted: Mon Feb 15, 2010 12:16 am
by nadbp
I want to install PAPI-3.7.1 on Ubuntu9.10 (according to http://spiral.cs.drexel.edu/wiki/Papi370Ubuntu910)
My cpu is Intel Pentium 4.

./configure --with-pcl --with-pcl-incdir=/usr/src/linux-headers-2.6.31-14/include/linux --prefix=/usr/local/papi-3.7.1
make
make test
Then I got this error:

PAPI Error: sys_perf_counter_open returned error on event #0. Unix says, Operation not permitted.
PAPI_FP_INS is not available.
PAPI Error: sys_perf_counter_open returned error on event #0. Unix says, Operation not permitted.
PAPI_TOT_CYC is not available.

And when I run the high level interface example, I had an error at the start function.

I also tried 3.7.2 and 4.0.0, but I just got the same error.
What can I do now? Does PAPI support Pentium 4?

Re: Help! PAPI 3.7.* on Ubuntu 9.10

PostPosted: Mon Feb 15, 2010 11:33 am
by Dan Terpstra
The problem is that the perf_events (pcl) interface in the latest kernels doesn't support Pentium 4 (and likely never will). To use PAPI, you will need to patch your kernel with perfctr and build PAPI on that interface.

Re: Help! PAPI 3.7.* on Ubuntu 9.10

PostPosted: Sun Feb 28, 2010 10:54 pm
by nadbp
Dan Terpstra wrote:The problem is that the perf_events (pcl) interface in the latest kernels doesn't support Pentium 4 (and likely never will). To use PAPI, you will need to patch your kernel with perfctr and build PAPI on that interface.


Where can I find the list of processors supported by this interface? Is pcl its name? I did not find helpful information on the Internet. Can you help me?
Thank you very much!

Re: Help! PAPI 3.7.* on Ubuntu 9.10

PostPosted: Tue Mar 02, 2010 6:30 pm
by vweaver1
The 2.6.31 kernel (that comes with Ubuntu 9.10) supports most Intel and AMD machines made in the past 10 years. The exceptions are Pentium 4, Pentium M, and some just-released chips.

The 2.6.33 kernel that was just released has support for Pentium M systems.

There has been some initial work on Pentium 4 support posted to the linux-kernel mailing list, but it likely will not be available for some time, if at all.