Skip to content

Commit

Permalink
Add support for AMD family 25 (19h) processors in the RAPL component.
Browse files Browse the repository at this point in the history
Tested on Family/Model/Stepping:
- 25/1/1
- 25/48/1
- 25/17/1
- 25/144/1
- 25/97/2
  • Loading branch information
Treece Burgess committed Nov 6, 2024
1 parent 9574363 commit 05c4aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/rapl/linux-rapl.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ _rapl_init_component( int cidx )
msr_pkg_energy_status=MSR_AMD_PKG_ENERGY_STATUS;
msr_pp0_energy_status=MSR_AMD_PP0_ENERGY_STATUS;

if (hw_info->cpuid_family!=0x17) {
/* Not a family 17h machine */
if ((hw_info->cpuid_family!=0x17) && (hw_info->cpuid_family!=0x19)) {
/* Not a family 17h or 19h machine */
strCpy=strncpy(_rapl_vector.cmp_info.disabled_reason,
"CPU family not supported",PAPI_MAX_STR_LEN);
_rapl_vector.cmp_info.disabled_reason[PAPI_MAX_STR_LEN-1]=0;
Expand Down

0 comments on commit 05c4aa1

Please sign in to comment.