mirror of
https://github.com/andreas-abel/nanoBench.git
synced 2025-12-15 19:10:08 +01:00
Add workaround for Zen 3 L3 cache associativity.
This commit is contained in:
@@ -505,6 +505,9 @@ def get_cache_info(cpu):
|
||||
elif d_15_12 == 0x4: L3Assoc = 4
|
||||
elif d_15_12 == 0x6: L3Assoc = 8
|
||||
elif d_15_12 == 0x8: L3Assoc = 16
|
||||
# Value 0x9, returned by Zen 3, is reserved according to AMD CPUID Specification document.
|
||||
# The Software Optimization Guide for AMD Family 19h Processors specifies L3 cache to be 16-way associative and shared by 8 cores inside a CPU complex.
|
||||
elif d_15_12 == 0x9: L3Assoc = 16
|
||||
elif d_15_12 == 0xA: L3Assoc = 32
|
||||
elif d_15_12 == 0xB: L3Assoc = 48
|
||||
elif d_15_12 == 0xC: L3Assoc = 64
|
||||
|
||||
Reference in New Issue
Block a user