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

@ -20,8 +20,9 @@
#define ALGO_RX_WOW 19
#define ALGO_RX_LOKI 20
#define ALGO_RX_ARQMA 21
#define ALGO_AR2_CHUKWA 22
#define ALGO_AR2_WRKZ 23
#define ALGO_RX_SFX 22
#define ALGO_AR2_CHUKWA 23
#define ALGO_AR2_WRKZ 24
#define FAMILY_UNKNOWN 0
#define FAMILY_CN 1

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