Merge pull request #1400 from SChernykh/dev

Fixed assembly selection for RandomX when it's on Auto
This commit is contained in:
xmrig 2019-12-10 01:01:12 +07:00 committed by GitHub
commit 2491149d61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}