From 222fcfae87debe38f4a05998c7bded0b61f2c0c2 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sat, 14 Dec 2019 16:30:46 +0100 Subject: [PATCH] Fixed thread count for MSR mod --- src/crypto/rx/Rx_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/rx/Rx_windows.cpp b/src/crypto/rx/Rx_windows.cpp index 0d89db32..a98a4334 100644 --- a/src/crypto/rx/Rx_windows.cpp +++ b/src/crypto/rx/Rx_windows.cpp @@ -190,7 +190,7 @@ void xmrig::Rx::osInit(const RxConfig &config) LOG_INFO(CLEAR "%s" GREEN_BOLD_S "MSR mod: setting MSR register values for %s", xmrig::rx_tag(), msr_mod_variant); std::thread wrmsr_thread([hDriver, &config]() { - for (uint32_t i = 0, n = std::thread::hardware_concurrency(); i < n; ++i) { + for (uint32_t i = 0, n = Cpu::info()->threads(); i < n; ++i) { Platform::setThreadAffinity(i); if (Cpu::info()->assembly() == Assembly::RYZEN) { wrmsr(hDriver, 0xC0011020, 0);