Papi configure error - performance monitoring interface

Open discussion of PAPI.

Papi configure error - performance monitoring interface

Postby varunnagpal » Tue Feb 16, 2010 9:58 am

Hi,
This is the first time I am trying to install Papi. I am using papi-4.0.0 version and have also applied the patch.

My system is Ubuntu 9.10 x86_64 Intel Core 2 duo,

When I run configure, I get the following error

varun@varun-laptop:/media/Data/Manuals/Research/Thesis/Misc/Tools/papi-4.0.0/src$ ./configure
checking for architecture... x86_64
checking for OS... linux
checking for OS version... 2.6.31-19-generic
checking for CPU type... core2
checking for 32 or 64 bit mode...
checking for gawk... gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for debug build... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ANSI C header files... (cached) yes
checking for ffsll... yes
checking for working gettid... no
checking for working syscall(SYS_gettid)... yes
checking for working MMTIMER... no
checking for working CLOCK_REALTIME_HR POSIX 1b timer... no
checking for working CLOCK_REALTIME POSIX 1b timer... yes
checking for real time clock or cycle counter... clock_realtime
checking for working __thread... yes
checking for high performance thread local storage... __thread
checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... yes
checking for thread virtual clock or cycle counter... clock_thread_cputime_id
checking for /sys/class/perfctr... no
checking for /dev/perfctr... no
checking for /sys/kernel/perfmon/version... no
checking for /proc/perfmon... no
checking for /usr/include/linux/perf_event.h... no
checking for /usr/include/linux/perf_counter.h... no
checking for /lib/modules/2.6.31-19-generic/source/include/linux/perf_event.h... no
checking for /lib/modules/2.6.31-19-generic/source/include/linux/perf_counter.h... no
configure: error: No performance monitoring interface available


I am sure I need to install some kernel source libraries related to performance monitoring, but I cant find it in synaptic package manager. Can someone suggest me whats missing and from where can i install it?
varunnagpal
 
Posts: 1
Joined: Tue Feb 16, 2010 9:49 am

Re: Papi configure error - performance monitoring interface

Postby adiazpon » Wed Mar 03, 2010 1:46 pm

I have the same problem with Ubuntu 9.04.
adiazpon
 
Posts: 11
Joined: Wed Mar 03, 2010 1:41 pm

Re: Papi configure error - performance monitoring interface

Postby Dan Terpstra » Wed Mar 03, 2010 3:13 pm

You need to build the kernel with perf_events turned on. I'm speaking generally here. Maybe some kernel wonks can provide specifics. Actually, for kernel 2.6.31, as listed for Ubuntu 9.10, the interface is called perf_counters. The name changes to perf_events in 2.6.32. If this module is enabled, then there will be a perf_counter.h file in a user accessible location. PAPI's configure takes a guess at where that file might be, but if it can't find it, the configure will fail. If the file is in a less obvious location, you can specify the path on the configure command line using the --with-pe-incdir=<path> argument.
Hope this helps
Dan Terpstra
 
Posts: 57
Joined: Mon Aug 24, 2009 5:42 pm

Re: Papi configure error - performance monitoring interface

Postby adiazpon » Tue Mar 09, 2010 3:11 pm

Im not sure about what you are talking about because I could do ./configure in Fedora without building the kernel, I think that some package is missing in my libraries. In Fedora I installed a package for compiling and I solved that configure problem, now back in Ubuntu I cant find that package.

But when I start using a little example in Fedora I realized that I must build kernel with perf, so I will try in Ubuntu.

Thanks for responding.
adiazpon
 
Posts: 11
Joined: Wed Mar 03, 2010 1:41 pm

Re: Papi configure error - performance monitoring interface

Postby adiazpon » Fri Apr 16, 2010 6:14 am

For the people who has this problem, I solved using Fedora 12. That don't requires a recompilation of kernel.

Good luck.
adiazpon
 
Posts: 11
Joined: Wed Mar 03, 2010 1:41 pm


Return to General discussion

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron