From b1e14dc1d34e938343b926b87aa6ffce122ceda4 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sun, 7 Feb 2021 18:49:54 +0700 Subject: [PATCH] Always disable kawpow for CPU backend. --- src/backend/cpu/CpuConfig.cpp | 4 ++++ src/config.json | 3 +-- src/core/config/Config_default.h | 3 +-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/backend/cpu/CpuConfig.cpp b/src/backend/cpu/CpuConfig.cpp index 3f7430408..46887b2d7 100644 --- a/src/backend/cpu/CpuConfig.cpp +++ b/src/backend/cpu/CpuConfig.cpp @@ -109,6 +109,10 @@ size_t xmrig::CpuConfig::memPoolSize() const std::vector xmrig::CpuConfig::get(const Miner *miner, const Algorithm &algorithm) const { + if (algorithm.family() == Algorithm::KAWPOW) { + return {}; + } + std::vector out; const auto &threads = m_threads.get(algorithm); diff --git a/src/config.json b/src/config.json index c9301b8eb..8b5532d5e 100644 --- a/src/config.json +++ b/src/config.json @@ -39,8 +39,7 @@ "astrobwt-max-size": 550, "astrobwt-avx2": false, "cn/0": false, - "cn-lite/0": false, - "kawpow": false + "cn-lite/0": false }, "opencl": { "enabled": false, diff --git a/src/core/config/Config_default.h b/src/core/config/Config_default.h index 01215ebad..dd7a20832 100644 --- a/src/core/config/Config_default.h +++ b/src/core/config/Config_default.h @@ -69,8 +69,7 @@ R"===( "astrobwt-max-size": 550, "astrobwt-avx2": false, "cn/0": false, - "cn-lite/0": false, - "kawpow": false + "cn-lite/0": false }, "opencl": { "enabled": false,