From 9bc13813ba2fb12436413fefa1fc1ba36c78cc19 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 9 Dec 2019 18:59:49 +0100 Subject: [PATCH] Fixed assembly selection for RandomX when it's on Auto --- src/crypto/rx/RxVm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/rx/RxVm.cpp b/src/crypto/rx/RxVm.cpp index 8cdad3710..486d83c2e 100644 --- a/src/crypto/rx/RxVm.cpp +++ b/src/crypto/rx/RxVm.cpp @@ -45,7 +45,7 @@ xmrig::RxVm::RxVm(RxDataset *dataset, uint8_t *scratchpad, bool softAes, xmrig:: m_flags |= RANDOMX_FLAG_JIT; } - if (assembly == Assembly::RYZEN) { + if ((assembly == Assembly::RYZEN) || ((assembly == Assembly::AUTO) && (Cpu::info()->assembly() == Assembly::RYZEN))) { m_flags |= RANDOMX_FLAG_RYZEN; }