sudkannan / likwid

Automatically exported from code.google.com/p/likwid
GNU General Public License v3.0
0 stars 0 forks source link

ERROR - [./src/perfmon.c:993] Uncore not supported on Desktop processors! #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to use likwid on my desktop, however it is failing with:

$ sudo likwid-perfctr  -C 0-3 -g MEM ./a.out
-------------------------------------------------------------
-------------------------------------------------------------
CPU type:   Intel Core SandyBridge processor 
CPU clock:  1.99 GHz 
ERROR - [./src/perfmon.c:993] Uncore not supported on Desktop processors!

However the wiki page:
* https://code.google.com/p/likwid/wiki/SandyBridge

mention "Uncore Performance Monitoring support."

If I use rapl, here is what I get

$ wget http://web.eece.maine.edu/~vweaver/projects/rapl/rapl-read.c
$ gcc rapl-read.c -lm && sudo ./a.out

Found Sandybridge CPU
Checking core #0
Power units = 0.125W
Energy units = 0.00001526J
Time units = 0.00097656s

Package thermal spec: 95.000W
Package minimum power: 60.000W
Package maximum power: 120.000W
Package maximum time window: 0.009766s
Package power limits are locked
Package power limit #1: 95.000W for 0.009766s (enabled, not_clamped)
Package power limit #2: 950.000W for 0.000000s (enabled, not_clamped)

Package energy before: 31530.319733J
PowerPlane0 (core) for core 0 energy before: 40205.847397J
PowerPlane0 (core) for core 0 policy: 0
PowerPlane1 (on-core GPU if avail) before: 5298.525558J
PowerPlane1 (on-core GPU if avail) 0 policy: 16

Sleeping 1 second

Package energy after: 31534.443237  (4.123505J consumed)
PowerPlane0 (core) for core 0 energy after: 40206.299271  (0.451874J consumed)
PowerPlane1 (on-core GPU if avail) after: 5298.880966  (0.355408J consumed)

Note: the energy measurements can overflow in 60s or so
      so try to sample the counters more often than that.

What am I doing wrong ?

Original issue reported on code.google.com by mathieu.malaterre on 12 Jan 2015 at 4:33

GoogleCodeExporter commented 9 years ago
This is a correct behavior. The Uncore counters are not supported on Intel 
Desktop Processors because the hardware does not support this feature. The 
message prefix should probably be changed from ERROR to  INFO.

Original comment by jan.trei...@gmail.com on 19 Jan 2015 at 8:48