mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 00:15:04 -05:00
Fixed issue with XLA
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -352,6 +352,8 @@ void xmrig::HwlocCpuInfo::processTopLevelCache(hwloc_obj_t cache, const Algorith
|
||||
if (extra == 0 && algorithm.l2() > 0) {
|
||||
cacheHashes = std::min<size_t>(std::max<size_t>(L2 / algorithm.l2(), cores.size()), cacheHashes);
|
||||
}
|
||||
if (algorithm == Algorithm::RX_XLA) cacheHashes = cores.size();
|
||||
|
||||
# endif
|
||||
|
||||
if (limit > 0) {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"title": true,
|
||||
"randomx": {
|
||||
"init": -1,
|
||||
"init-avx2": -1,
|
||||
"init-avx2": 0,
|
||||
"mode": "auto",
|
||||
"1gb-pages": false,
|
||||
"rdmsr": true,
|
||||
|
||||
Reference in New Issue
Block a user