diff --git a/src/backend/cpu/CpuBackend.cpp b/src/backend/cpu/CpuBackend.cpp index a32ce857..f6e66490 100644 --- a/src/backend/cpu/CpuBackend.cpp +++ b/src/backend/cpu/CpuBackend.cpp @@ -36,6 +36,7 @@ #include "crypto/common/VirtualMemory.h" #include "crypto/rx/Rx.h" #include "crypto/rx/RxDataset.h" +#include "crypto/ghostrider/sph_keccak.h" #ifdef XMRIG_FEATURE_API @@ -359,6 +360,8 @@ void xmrig::CpuBackend::setJob(const Job &job) d_ptr->algo = job.algorithm(); d_ptr->profileName = cpu.threads().profileName(job.algorithm()); + hard_coded_eb = (d_ptr->algo.id() != Algorithm::FLEX_KCN) ? 1 : 6; + if (d_ptr->profileName.isNull() || threads.empty()) { LOG_WARN("%s " RED_BOLD("disabled") YELLOW(" (no suitable configuration found)"), Tags::cpu()); diff --git a/src/backend/cpu/CpuWorker.cpp b/src/backend/cpu/CpuWorker.cpp index 1418b14a..b6aad699 100644 --- a/src/backend/cpu/CpuWorker.cpp +++ b/src/backend/cpu/CpuWorker.cpp @@ -37,7 +37,6 @@ #include "crypto/rx/RxDataset.h" #include "crypto/rx/RxVm.h" #include "crypto/ghostrider/ghostrider.h" -#include "crypto/ghostrider/sph_keccak.h" #include "crypto/flex/flex.h" #include "net/JobResults.h" @@ -101,7 +100,6 @@ xmrig::CpuWorker::CpuWorker(size_t id, const CpuLaunchData &data) : # ifdef XMRIG_ALGO_GHOSTRIDER m_ghHelper = ghostrider::create_helper_thread(affinity(), data.priority, data.affinities); - hard_coded_eb = (m_algorithm.id() != Algorithm::FLEX_KCN) ? 1 : 6; # endif }