diff --git a/src/backend/cpu/platform/BasicCpuInfo.cpp b/src/backend/cpu/platform/BasicCpuInfo.cpp index b25a3d9f..01345668 100644 --- a/src/backend/cpu/platform/BasicCpuInfo.cpp +++ b/src/backend/cpu/platform/BasicCpuInfo.cpp @@ -336,6 +336,14 @@ xmrig::CpuThreads xmrig::BasicCpuInfo::threads(const Algorithm &algorithm, uint3 return count_limit; } + if (algorithm == Algorithm::RX_XLA) { + CpuThreads threads; + for (size_t i = 0; i < count_limit2; ++i) { + threads.add(i, 0); + } + return threads; + } + return count_limit2; } # endif diff --git a/src/backend/cpu/platform/HwlocCpuInfo.cpp b/src/backend/cpu/platform/HwlocCpuInfo.cpp index fe4ba5a7..6608cdde 100644 --- a/src/backend/cpu/platform/HwlocCpuInfo.cpp +++ b/src/backend/cpu/platform/HwlocCpuInfo.cpp @@ -352,6 +352,8 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith if (extra == 0 && algorithm.l2() > 0) { cacheHashes = std::min(std::max(L2 / algorithm.l2(), cores.size()), cacheHashes); } + if (algorithm == Algorithm::RX_XLA) cacheHashes = cores.size(); + # endif if (limit > 0) { diff --git a/src/config.json b/src/config.json index 5ef25971..7d489d3d 100644 --- a/src/config.json +++ b/src/config.json @@ -16,7 +16,7 @@ "title": true, "randomx": { "init": -1, - "init-avx2": -1, + "init-avx2": 0, "mode": "auto", "1gb-pages": false, "rdmsr": true,