Merge branch 'evo' into feature-hwloc

This commit is contained in:
XMRig 2019-07-25 13:41:51 +07:00
commit ccd5fae5e1
3 changed files with 7 additions and 3 deletions

View file

@ -81,8 +81,9 @@ xmrig::CpuWorker<N>::~CpuWorker()
template<size_t N>
void xmrig::CpuWorker<N>::allocateRandomX_VM()
{
RxDataset *dataset = Rx::dataset(m_job.currentJob().seedHash(), m_job.currentJob().algorithm());
if (!m_vm) {
RxDataset *dataset = Rx::dataset(m_job.currentJob().seedHash(), m_job.currentJob().algorithm());
m_vm = new RxVm(dataset, m_memory->scratchpad(), !m_hwAES);
}
}