From what I can tell libpfm4 supports your processor fine. Try doing a
"papi_native_avail" and it will list all of the events libpfm4 knows
about. You should be able to use any of the events.
What's missing are the preset events, ones like PAPI_TOT_CYC. To get
these the papi_events.csv file has to be updated for Tigerlake.
Often if a new processor is the same as the last generation this is just a
simple one line change, otherwise you might have to manually go through
and update the event list. This can be especially tricky for things like
cache events.
I think the papi team at UTK have a tool that can automate validating
the predefined event lists for a new processor, but I'm not sure if they
have access to a Tigerlake machine to do this on.
It does appear your processor does not have support for the uncore
counters yet in libpfm4, but that's a separate issue.
Vince
On Fri, 18 Mar 2022, Shashidhara Ganjugunte wrote:
> Hi Folks,
>
> I have a similar problem and would really like to get it to work on the
> following machine.
> Please see the output of papi_component_avail below.
>
> I would like to get some advice on possible next steps:
>
> 1. How do I confirm that libpfm4/PAPI do not have support for this
> processor.
> Also, is there any examples on how to do add support .
> 2. From this conversation it seems that I could still use some native/raw
> events.
> If there are examples on how to do that, it will be helpful too.
>
> Please let me know.
>
> Available components and hardware information.
> --------------------------------------------------------------------------------
> PAPI version : 6.0.0.1
> Operating system : Linux 4.12.14-122.60-default
> Vendor string and code : GenuineIntel (1, 0x1)
> Model string and code : Intel(R) Xeon(R) Gold 6342 CPU @ 2.80GHz (106,
> 0x6a)
> CPU revision : 6.000000
> CPUID : Family/Model/Stepping 6/106/6, 0x06/0x6a/0x06
> CPU Max MHz : 2800
> CPU Min MHz : 2800
> Total cores : 24
> SMT threads per core : 1
> Cores per socket : 24
> Sockets : 1
> Cores per NUMA region : 24
> NUMA regions : 1
> Running in a VM : no
> Number Hardware Counters : 20
> Max Multiplex Counters : 384
> Fast counter read (rdpmc): no
> --------------------------------------------------------------------------------
>
> 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
>
> Active components:
> Name: perf_event Linux perf_event CPU counters
> Native: 157, Preset: 0, Counters: 20
> PMUs supported: ix86arch, perf, perf_raw,
> icx
> Thanks,
> Shashi
>
> --------------------------------------------------------------------------------