Skip to content

Commit

Permalink
support for Intel SapphireRapid
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnedj authored and khuey committed May 22, 2023
1 parent 2b1cfe9 commit 0ed8132
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PerfCounters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ enum CpuMicroarch {
IntelRocketlake,
IntelAlderlake,
IntelRaptorlake,
LastIntel = IntelRaptorlake,
IntelSapphireRapid,
LastIntel = IntelSapphireRapid,
FirstAMD,
AMDF15R30 = FirstAMD,
AMDZen,
Expand Down Expand Up @@ -155,6 +156,7 @@ struct PmuConfig {
// See Intel 64 and IA32 Architectures Performance Monitoring Events.
// See check_events from libpfm4.
static const PmuConfig pmu_configs[] = {
{ IntelSapphireRapid, "Intel SapphireRapid", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB },
{ IntelRaptorlake, "Intel Raptorlake", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB },
{ IntelAlderlake, "Intel Alderlake", 0x5111c4, 0, 0, 125, PMU_TICKS_RCB },
{ IntelRocketlake, "Intel Rocketlake", 0x5111c4, 0, 0, 100, PMU_TICKS_RCB },
Expand Down
2 changes: 2 additions & 0 deletions src/PerfCounters_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ static CpuMicroarch compute_cpu_microarch() {
return IntelAlderlake;
case 0xb0670:
return IntelRaptorlake;
case 0x806f0:
return IntelSapphireRapid;
case 0x30f00:
return AMDF15R30;
case 0x00f10: // Naples, Whitehaven, Summit Ridge, Snowy Owl (Zen), Milan (Zen 3) (UNTESTED)
Expand Down

0 comments on commit 0ed8132

Please sign in to comment.