anrieff / libcpuid

a small C library for x86 CPU detection and feature extraction
Other
451 stars 106 forks source link

Fix for Zen 2 #126

Closed TheTumultuousUnicornOfDarkness closed 5 years ago

TheTumultuousUnicornOfDarkness commented 5 years ago

Following my previous comment https://github.com/anrieff/libcpuid/pull/125#issuecomment-510646545, it fixes the SSE unit size for Zen 2 CPUs. Ryzen 7 3700X and Ryzen 9 3900X added to tests too.

$ make test                                                                                                                                                                     
LD_PRELOAD=./libcpuid/.libs/libcpuid.so ./tests/run_tests.py ./cpuid_tool/.libs/cpuid_tool --show-test-fast-warning ./tests
Testing...
Test [./tests/intel/skylake/xeon-scalable-4114]: OK
Test [./tests/intel/skylake/skylake-pentium]: OK
Test [./tests/intel/skylake/skylake-x-i7]: OK
Test [./tests/intel/skylake/skylake-i5]: OK
Test [./tests/intel/ivy/i3]: OK
Test [./tests/intel/haswell/haswell-i5]: OK
Test [./tests/intel/haswell/haswell-i7]: OK
Test [./tests/intel/haswell/haswell-i3]: OK
Test [./tests/intel/haswell/crystalwell-i7]: OK
Test [./tests/intel/netburst/p4-northwood]: OK
Test [./tests/intel/netburst/celeron-willamette]: OK
Test [./tests/intel/netburst/celeron-northwood.test]: OK
Test [./tests/intel/netburst/xeon-prestonia]: OK
Test [./tests/intel/netburst/celeron-prescott]: OK
Test [./tests/intel/netburst/mobile-p4-northwood]: OK
Test [./tests/intel/netburst/p4-prescott-ht]: OK
Test [./tests/intel/sandy/celeron-sandy]: OK
Test [./tests/intel/sandy/ivy-bridge-i5]: OK
Test [./tests/intel/sandy/xeon-sandy]: OK
Test [./tests/intel/sandy/sandy-bridge-i7]: OK
Test [./tests/intel/sandy/sandy-bridge-e-i7]: OK
Test [./tests/intel/qemu/qemu]: OK
Test [./tests/intel/nehalem/xeon-bloomfield]: OK
Test [./tests/intel/nehalem/xeon-gulftown]: OK
Test [./tests/intel/nehalem/gulftown-i7]: OK
Test [./tests/intel/nehalem/arrandale-mobile]: OK
Test [./tests/intel/nehalem/xeon-gainestown]: OK
Test [./tests/intel/nehalem/arrandale-i7]: OK
Test [./tests/intel/nehalem/lynnfield-i7]: OK
Test [./tests/intel/nehalem/arrandale-i5]: OK
Test [./tests/intel/nehalem/bloomfield]: OK
Test [./tests/intel/lakes/coffee-lake-i7]: OK
Test [./tests/intel/lakes/kaby-lake-i7-u]: OK
Test [./tests/intel/atom/atom-pineview-2]: OK
Test [./tests/intel/atom/atom-diamondville-dualcore]: OK
Test [./tests/intel/atom/atom-pineview-3]: OK
Test [./tests/intel/atom/atom-diamondville]: OK
Test [./tests/intel/atom/atom-pineview]: OK
Test [./tests/intel/broadwell/broadwell-e-i7]: OK
Test [./tests/intel/p2/pentium-dixon]: OK
Test [./tests/intel/p2/petium-m-dothan]: OK
Test [./tests/intel/p2/pentium-coppermine]: OK
Test [./tests/intel/p2/celeron-coppermine]: OK
Test [./tests/intel/core2/conroe-1m]: OK
Test [./tests/intel/core2/conroe-l-celeron]: OK
Test [./tests/intel/core2/allendale]: OK
Test [./tests/intel/core2/merom-2m]: OK
Test [./tests/intel/core2/kentsfield]: OK
Test [./tests/intel/core2/yorkfield-2m]: OK
Test [./tests/intel/core2/conroe]: OK
Test [./tests/intel/core2/penryn-3m]: OK
Test [./tests/intel/core2/conroe-l]: OK
Test [./tests/intel/core2/celeron-wolfdale]: OK
Test [./tests/intel/core2/merom]: OK
Test [./tests/intel/core2/xeon-wolfdale]: OK
Test [./tests/intel/core2/penryn-mobile]: OK
Test [./tests/intel/core2/yonah-2]: OK
Test [./tests/intel/core2/xeon-harpertown]: OK
Test [./tests/intel/core2/yorkfield]: OK
Test [./tests/intel/core2/xeon-clovertown]: OK
Test [./tests/intel/core2/wolfdale]: OK
Test [./tests/intel/core2/yonah-3]: OK
Test [./tests/intel/core2/yonah]: OK
Test [./tests/amd/k10/athlon-2-champlain-mobile]: OK
Test [./tests/amd/k10/athlon-2-propus-3]: OK
Test [./tests/amd/k10/sempron-sargas]: OK
Test [./tests/amd/k10/athlon-2-propus-2]: OK
Test [./tests/amd/k10/athlon-2-propus]: OK
Test [./tests/amd/k10/phenom-2-deneb]: OK
Test [./tests/amd/k10/phenom-2-thuban]: OK
Test [./tests/amd/k10/athlon-2-kuma]: OK
Test [./tests/amd/k10/phenom-2-heka]: OK
Test [./tests/amd/k10/athlon-2-regor]: OK
Test [./tests/amd/k10/phenom-agena]: OK
Test [./tests/amd/k10/magny-cours]: OK
Test [./tests/amd/zen/epyc-naples]: OK
Test [./tests/amd/zen/threadripper-whitehaven]: OK
Test [./tests/amd/zen/ryzen7-summit-ridge]: OK
Test [./tests/amd/zen/ryzen3-raven-ridge]: OK
Test [./tests/amd/zen/ryzen5-summit-ridge]: OK
Test [./tests/amd/zen/ryzen5-raven-ridge]: OK
Test [./tests/amd/bulldozer/vishera-x4]: OK
Test [./tests/amd/bulldozer/bulldozer-x4]: OK
Test [./tests/amd/bobcat/brazos-zacate]: OK
Test [./tests/amd/zen2/ryzen7-matisse]: OK
Test [./tests/amd/zen2/ryzen9-matisse]: OK
Test [./tests/amd/zen2/ryzen5-matisse]: OK
Test [./tests/amd/k8/sempron-64-sparta]: OK
Test [./tests/amd/k8/athlon-64-brisbane]: OK
Test [./tests/amd/k8/athlon-64-venice]: OK
Test [./tests/amd/k8/opteron-denmark]: OK
Test [./tests/amd/k8/mobile-sempron-64-sonora]: OK
Test [./tests/amd/k8/mobile-sempron-64-keene]: OK
Test [./tests/amd/k8/turion-64-lancaster]: OK
Test [./tests/amd/k7/athlon-thoroughbred]: OK
Test [./tests/amd/k7/duron-applebred]: OK
Test [./tests/amd/k7/sempron-barton]: OK
Test [./tests/amd/zen+/ryzen5-picasso]: OK
Test [./tests/amd/zen+/threadripper-colfax]: OK
Test [./tests/amd/zen+/ryzen7-pinnacle-ridge]: OK
All successfull!
anrieff commented 5 years ago

Precisely :) Many thanks, great work as usual!