Fix OpenCL.

This commit is contained in:
XMRig 2019-12-20 04:05:09 +07:00
parent 45412a2ace
commit 2911bb3a81
No known key found for this signature in database
GPG key ID: 446A53638BE94409
6 changed files with 15 additions and 105 deletions

View file

@ -56,10 +56,7 @@ xmrig::OclRxBaseRunner::OclRxBaseRunner(size_t index, const OclLaunchData &data)
m_gcn_version = 14;
}
// 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 += " -DALGO=" + std::to_string(RxAlgo::id(m_algorithm));
m_options += " -DWORKERS_PER_HASH=" + std::to_string(m_worksize);
m_options += " -DGCN_VERSION=" + std::to_string(m_gcn_version);
}