install PAPI 4.1.0 on linux 2.6.33.3

Open discussion of PAPI.

install PAPI 4.1.0 on linux 2.6.33.3

Postby bowu » Wed Jul 14, 2010 5:12 pm

Hi there,

After I installed papi 4.1.0, I ran make test, which gave me the error: PAPI Error: vperfctr_open() returned NULL, please run perfex -i to verify your perfctr installation.

perfex -i gave me: perfex: open perfctrs: No such file or directory.

I didn't patch the kernel, since INSTALL.txt says it is not necessary for kernel later than 2.6.31. However, /dev/perfctr does not exist in my system. Does that mean I should patch the kernel anyway?

Thanks,
Bo
bowu
 
Posts: 1
Joined: Wed Jul 14, 2010 4:50 pm

Re: install PAPI 4.1.0 on linux 2.6.33.3

Postby danterpstra » Fri Aug 13, 2010 11:17 am

You shouldn't need to patch this kernel as long as the perf_events module has been turned on and compiled into your kernel. This is done by default on many distributions. However, it does look like your compile is expecting perfctr.
You should see a line like the following in your configure output:

checking for /usr/include/linux/perf_counter.h... yes

You should also see the following:

configure: Rules.pfm_pe will be included in the generated Makefile

If you don't, try rerunning configure using:
> ./configure --with-perf-events

If your perf_counter.h file is located in a different directory, you may also need to specify --with-pe-incdir=<path>

Hope this helps
danterpstra
 
Posts: 63
Joined: Wed Jun 23, 2010 2:21 pm


Return to General discussion

Who is online

Users browsing this forum: Rereesogy and 1 guest

cron