Skip to content

Commit

Permalink
Merge pull request #275 from Treece-Burgess/10.24.24-rapl-amd-families
Browse files Browse the repository at this point in the history
Add support for AMD family 25 (19h) processors in the RAPL component.
  • Loading branch information
Treece-Burgess authored Dec 13, 2024
2 parents d3e966f + 28dd250 commit 7124ad4
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 @@ -505,8 +505,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 7124ad4

Please sign in to comment.