mirror of
https://github.com/xmrig/xmrig.git
synced 2025-02-02 03:06:30 +00:00
Added fallback to basic auto configuration.
This commit is contained in:
parent
bd739d217b
commit
aabf183462
1 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
|||
|
||||
|
||||
#include "backend/cpu/platform/HwlocCpuInfo.h"
|
||||
#include "base/io/log/Log.h"
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
@ -201,6 +202,12 @@ xmrig::CpuThreads xmrig::HwlocCpuInfo::threads(const Algorithm &algorithm) const
|
|||
processTopLevelCache(cache, algorithm, threads);
|
||||
}
|
||||
|
||||
if (threads.empty()) {
|
||||
LOG_WARN("hwloc auto configuration for algorithm \"%s\" failed.", algorithm.shortName());
|
||||
|
||||
return BasicCpuInfo::threads(algorithm);
|
||||
}
|
||||
|
||||
return threads;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue