1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-02 00:12:38 -05:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Tony Butler
cfbf557f78 Merge a776ebf394 into 8b03750806 2024-10-24 06:31:14 +07:00

View File

@@ -342,7 +342,7 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith
}
# ifdef XMRIG_ALGO_RANDOMX
if ((vendor() == VENDOR_INTEL) && (algorithm.family() == Algorithm::RANDOM_X) && L3_exclusive && (PUs < cores.size() * 2)) {
if ((algorithm.family() == Algorithm::RANDOM_X) && L3_exclusive && (PUs > cores.size()) && (PUs < cores.size() * 2)) {
// Use all L3+L2 on latest Intel CPUs with P-cores, E-cores and exclusive L3 cache
cacheHashes = (L3 + L2) / scratchpad;
}