1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-07-02 06:54:30 -04:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Tony Butler 586fbbee94 Merge 14128cbdb4 into 16ecb8f085 2024-12-28 15:24:05 +01:00
+2 -7
View File
@@ -330,13 +330,8 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith
L2 += l2->attr->cache.size; L2 += l2->attr->cache.size;
L2_associativity = l2->attr->cache.associativity; L2_associativity = l2->attr->cache.associativity;
if (L3_exclusive) { if (L3_exclusive && l2->attr->cache.size >= scratchpad) {
if (vendor() == VENDOR_AMD) { extra += scratchpad;
extra += std::min<size_t>(l2->attr->cache.size, scratchpad);
}
else if (l2->attr->cache.size >= scratchpad) {
extra += scratchpad;
}
} }
} }
} }