RandomSFX (Safex Cash variant) support

This commit is contained in:
SChernykh 2019-12-16 19:36:29 +01:00
parent 33e7a54c29
commit 4da37baf8c
7 changed files with 24 additions and 3 deletions

View file

@ -56,7 +56,10 @@ xmrig::OclRxBaseRunner::OclRxBaseRunner(size_t index, const OclLaunchData &data)
m_gcn_version = 14;
}
m_options += " -DALGO=" + std::to_string(m_algorithm.id());
// rx/sfx is the same as rx/0 except Argon salt for dataset generation
Algorithm::Id id = (m_algorithm.id() == Algorithm::RX_SFX) ? Algorithm::RX_0 : m_algorithm.id();
m_options += " -DALGO=" + std::to_string(id);
m_options += " -DWORKERS_PER_HASH=" + std::to_string(m_worksize);
m_options += " -DGCN_VERSION=" + std::to_string(m_gcn_version);
}