Cannot get any papi events on my machine

24 views
Skip to first unread message

Vidush Singhal

unread,
Feb 11, 2025, 12:13:19 PMFeb 11
to ptools-...@icl.utk.edu
Hello,
I have an alderlake intel 12th gen i7 12700K

I have been trying to install papi, however papi_component_avail shows me no perf_uncore events.
I tried to enable all options in the BIOS. In addition, perf uncore events on their own work.
I compiled the latest papi from git papi_avail shows me that 0 counters are available.
I have no idea how to get the counters working and any help would be much appreciated. 
Sincerely,
Vidush Singhal



Available components and hardware information.
--------------------------------------------------------------------------------
PAPI version             : 7.2.0.0
Operating system         : Linux 6.11.0-17-generic
Vendor string and code   : GenuineIntel (1, 0x1)
Model string and code    : 12th Gen Intel(R) Core(TM) i7-12700K (151, 0x97)
CPU revision             : 2.000000
CPUID                    : Family/Model/Stepping 6/151/2, 0x06/0x97/0x02
CPU Max MHz              : 5100
CPU Min MHz              : 800
Total cores              : 20
SMT threads per core     : 2
Cores per socket         : 10
Sockets                  : 1
Cores per NUMA region    : 20
NUMA regions             : 1
Running in a VM          : no
Number Hardware Counters : 11
Max Multiplex Counters   : 384
Fast counter read (rdpmc): yes
--------------------------------------------------------------------------------

Compiled-in components:
Name:   perf_event              Linux perf_event CPU counters
Name:   perf_event_uncore       Linux perf_event CPU uncore and northbridge
   \-> Disabled: No uncore PMUs or events found
Name:   sysdetect               System info detection component

Active components:
Name:   perf_event              Linux perf_event CPU counters
                                Native: 185, Preset: 0, Counters: 11
                                PMUs supported: ix86arch, perf, perf_raw, adl_glc, adl_grt

Name:   sysdetect               System info detection component
                                Native: 0, Preset: 0, Counters: 0



Willow Cunningham

unread,
Feb 11, 2025, 1:32:33 PMFeb 11
to ptools-perfapi, Vidush Singhal
Hello Vidush,

I believe that at this time there are no definitions for the PAPI predefined events on the alderlake architecture. However, you should still be able to access native events. It looks like from your papi_component_avail output, perf_event has identified 185 native events on your machine which can be added to EventSets and used with PAPI_start/PAPI_stop. Do you see these events listed properly when you run papi_native_avail?

Vidush Singhal

unread,
Feb 11, 2025, 3:21:34 PMFeb 11
to Willow Cunningham, ptools-perfapi
Hi Willow,
Thanks for getting back to me.
I do see the native events, but I wasn't sure if I could access these in the C++ code.
Thanks,
Vidush

From: Willow Cunningham <willow.e....@gmail.com>
Sent: Tuesday, February 11, 2025 1:01 PM
To: ptools-perfapi <ptools-...@icl.utk.edu>
Cc: Vidush Singhal <sin...@purdue.edu>
Subject: Re: Cannot get any papi events on my machine
 
You don't often get email from willow.e....@gmail.com. Learn why this is important
---- External Email: Use caution with attachments, links, or sharing data ----
Reply all
Reply to author
Forward
0 new messages