RRZE-HPC / likwid

Performance monitoring and benchmarking suite
https://hpc.fau.de/research/tools/likwid/
GNU General Public License v3.0
1.65k stars 226 forks source link

[BUG] Support AMD Ryzen 9 5900HX #434

Closed ferdavs closed 2 years ago

ferdavs commented 2 years ago

Describe the bug Not working on AMD Ryzen 9 5900HX

To Reproduce with a LIKWID command likwid-powermeter -i -V 3

ERROR - [./src/perfmon.c:perfmon_init_maps:1260] Unsupported AMD Zen Processor DEBUG - [HPMinit:98] Adjusting functions for x86 architecture in daemon mode DEBUG - [access_x86_rdpmc_init:152] Test for RDPMC for PMC counters returned 1 DEBUG - [access_x86_rdpmc_init:175] Test for RDPMC for FIXED slots counter returned -1 DEBUG - [access_x86_rdpmc_init:187] Test for RDPMC for L3 counters returned 1 DEBUG - [access_x86_rdpmc_init:203] Test for RDPMC for DataFabric counters returned 1 DEBUG - [access_client_startDaemon:141] Starting daemon /usr/local/sbin/likwid-accessD DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:189] Still waiting for socket /tmp/likwid-10178 for CPU 0... DEBUG - [access_client_startDaemon:201] Successfully opened socket /tmp/likwid-10178 to daemon for CPU 0 DEBUG - [HPMaddThread:143] Adding CPU 0 to access module The nil does not support reading power data or access is locked

Additional context grep -E "model|family|stepping" /proc/cpuinfo | sort -u

cpu family : 25 model : 80 model name : AMD Ryzen 9 5900HX with Radeon Graphics stepping : 0

ferdavs commented 2 years ago

likwid-perfctr --info CPU name: AMD Ryzen 9 5900HX with Radeon Graphics
CPU type: nil CPU clock: 3.30 GHz CPU family: 25 CPU model: 80 CPU short: nil CPU stepping: 0 CPU features: FP MMX SSE SSE2 HTT MMX RDTSCP MONITOR SSSE FMA SSE4.1 SSE4.2 AES AVX RDRAND AVX2 RDSEED SSE3 CPU arch: x86_64

TomTheBear commented 2 years ago

I added support for the chip in the master branch. likwid-powermeter as well as likwid-perfctr should work.

ferdavs commented 2 years ago

Thank you! It is working now