Page 1 of 1

Cannot make tests on AMD A8-3850

PostPosted: Fri Nov 04, 2011 4:47 pm
by skabala2
Hi. I am running Ubuntu 11.04, kernel 2.6.38-12, and after running the PAPI configure script and 'make', when I run 'make test' I get the following error:

cd ctests; make CC="gcc" CC_R="gcc -pthread" CFLAGS="-I.. -g -DSTATIC_PAPI_EVENTS_TABLE -DPEINCLUDE=\"libpfm4/include/perfmon/perf_event.h\" -D_REENTRANT -D_GNU_SOURCE -DUSE_COMPILER_TLS -Wall -I/home/skabala/Downloads/papi-4.2.0/src/libpfm4/include -DSUBSTRATE_USES_LIBPFM -DSUBSTRATE_NAME_perf_events -Wextra -DPAPI_NO_MEMORY_MANAGEMENT" TOPTFLAGS="-O0" SMPCFLGS="" OMPCFLGS="-fopenmp" NOOPT="" LDFLAGS=" " LDL="-ldl" LIBRARY="../libpapi.a" papi_api serial forkexec_tests overflow_tests profile_tests attach multiplex_and_pthreads shared
make[1]: Entering directory `/home/skabala/Downloads/papi-4.2.0/src/ctests'
make[1]: Nothing to be done for { several tests listed here... }
make[1]: Leaving directory `/home/skabala/Downloads/papi-4.2.0/src/ctests'
ctests/zero
PAPI Error: Could not find default PMU
.
zero.c FAILED
Line # 36
Error in PAPI_library_init: PAPI_ESBSTR

make: *** [test] Error 1


When I run 'modprobe powernow-k8' and then 'dmesg | grep powernow' it detects my CPU and lists the supported P-states (8 allowed frequencies). I think powernow is the PMU for my AMD processor, right? I also checked my BIOS and ACPI is enabled. I really don't know what to try at this point... Any help would be greatly appreciated! :)

Re: Cannot make tests on AMD A8-3850

PostPosted: Tue Nov 08, 2011 4:11 pm
by vweaver1
skabala2 wrote:Hi. I am running Ubuntu 11.04, kernel 2.6.38-12, and after running the PAPI configure script and 'make', when I run 'make test' I get the following error:

cd ctests; make CC="gcc" CC_R="gcc -pthread" CFLAGS="-I.. -g -DSTATIC_PAPI_EVENTS_TABLE -DPEINCLUDE=\"libpfm4/include/perfmon/perf_event.h\" -D_REENTRANT -D_GNU_SOURCE -DUSE_COMPILER_TLS -Wall -I/home/skabala/Downloads/papi-4.2.0/src/libpfm4/include -DSUBSTRATE_USES_LIBPFM -DSUBSTRATE_NAME_perf_events -Wextra -DPAPI_NO_MEMORY_MANAGEMENT" TOPTFLAGS="-O0" SMPCFLGS="" OMPCFLGS="-fopenmp" NOOPT="" LDFLAGS=" " LDL="-ldl" LIBRARY="../libpapi.a" papi_api serial forkexec_tests overflow_tests profile_tests attach multiplex_and_pthreads shared
make[1]: Entering directory `/home/skabala/Downloads/papi-4.2.0/src/ctests'
make[1]: Nothing to be done for { several tests listed here... }
make[1]: Leaving directory `/home/skabala/Downloads/papi-4.2.0/src/ctests'
ctests/zero
PAPI Error: Could not find default PMU
.
zero.c FAILED
Line # 36
Error in PAPI_library_init: PAPI_ESBSTR

make: *** [test] Error 1


When I run 'modprobe powernow-k8' and then 'dmesg | grep powernow' it detects my CPU and lists the supported P-states (8 allowed frequencies). I think powernow is the PMU for my AMD processor, right? I also checked my BIOS and ACPI is enabled. I really don't know what to try at this point... Any help would be greatly appreciated! :)


PMU in this case means performance-monitoring unit, not Power.

Somehow your processor is not being detected. Does "dmesg" say anything about perf_events? You're not trying to run inside of a virtual machine, are you?

Re: Cannot make tests on AMD A8-3850

PostPosted: Mon Nov 14, 2011 6:53 pm
by skabala2
It's set up as a dual-boot using grub, but I'm not running a virtual machine. The only 'perf' lines in the dmesg log are:
> grep -i 'perf' /var/log/dmesg
[ 0.140000] Performance Events: AMD PMU driver.
[ 13.259687] [drm] nouveau 0000:01:00.0: 2 available performance level(s)


My kernel is 2.6.38-12-generic, and I read that support for this particular processor's on-chip GPU wasn't officially added to the kernel until 3.0. Maybe some other things didn't quite make it before 3.0 either... I chose Ubuntu 11.04 over 11.10 for other reasons, but if I have to upgrade for full kernel support of the processor, I suppose I could try that. So far other things have been fine for that CPU with 11.04.

Re: Cannot make tests on AMD A8-3850

PostPosted: Tue Nov 22, 2011 1:58 pm
by vweaver1
can you post a copy of your /proc/cpuinfo file? Your processor might be too new to be supported by PAPI, but it would be nice to add support.

Re: Cannot make tests on AMD A8-3850

PostPosted: Wed Nov 30, 2011 5:06 pm
by skabala2
Sure, I've listed /proc/cpuinfo at the end. I upgraded to Ubuntu 11.10 (with no changes to the default kernel), and still no luck after configure and make succeed. Several of the 'perf' files PAPI's configure script looks for don't appear to be present; though, perf_event_paranoid and libpfm4 includes are :

$ ./configure | grep 'perf'
checking for perf_event workaround level... autodetect
checking for high performance thread local storage... __thread
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 /proc/sys/kernel/perf_event_paranoid... yes
checking for libpfm4/include/perfmon/perf_event.h... yes


Here is my /proc/cpuinfo (identical entry for each of the 4 processor cores):

processor : 0
vendor_id : AuthenticAMD
cpu family : 18
model : 1
model name : AMD A8-3850 APU with Radeon(tm) HD Graphics
stepping : 0
cpu MHz : 800.000
cache size : 1024 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat npt lbrv svm_lock nrip_save pausefilter
bogomips : 5789.51
TLB size : 1536 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor : 1
vendor_id : AuthenticAMD
cpu family : 18
model : 1
model name : AMD A8-3850 APU with Radeon(tm) HD Graphics
stepping : 0
cpu MHz : 800.000
cache size : 1024 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat npt lbrv svm_lock nrip_save pausefilter
bogomips : 5789.31
TLB size : 1536 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor : 2
vendor_id : AuthenticAMD
cpu family : 18
model : 1
model name : AMD A8-3850 APU with Radeon(tm) HD Graphics
stepping : 0
cpu MHz : 800.000
cache size : 1024 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat npt lbrv svm_lock nrip_save pausefilter
bogomips : 5789.33
TLB size : 1536 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor : 3
vendor_id : AuthenticAMD
cpu family : 18
model : 1
model name : AMD A8-3850 APU with Radeon(tm) HD Graphics
stepping : 0
cpu MHz : 800.000
cache size : 1024 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat npt lbrv svm_lock nrip_save pausefilter
bogomips : 5789.31
TLB size : 1536 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

Re: Cannot make tests on AMD A8-3850

PostPosted: Thu Dec 08, 2011 3:30 pm
by vweaver1
You have an AMD fam12h CPU. libpfm4 (and thus PAPI) currently does not support this chip yet. I'm looking into what it will take to get this chip supported.

Re: Cannot make tests on AMD A8-3850

PostPosted: Wed Jan 11, 2012 6:19 pm
by vweaver1
The development version of PAPI in CVS should support AMD fam12h now. Please try it and let us know if it works.