Merge pull request #3534 from SChernykh/dev

Fixed threads auto-config on Zen5
This commit is contained in:
xmrig 2024-08-17 06:23:49 +07:00 committed by GitHub
commit 01bd0d48a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -326,7 +326,8 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith
}
}
if (scratchpad == 2 * oneMiB) {
// This code is supposed to run only on Intel CPUs
if ((vendor() == VENDOR_INTEL) && (scratchpad == 2 * oneMiB)) {
if (L2 && (cores.size() * oneMiB) == L2 && L2_associativity == 16 && L3 >= L2) {
L3 = L2;
extra = L2;