1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-19 05:25:40 -05:00

Add "rx/yada" algorithm

This commit is contained in:
Matt Vogel
2021-12-10 13:49:40 -08:00
parent 5b8501fb57
commit 8c9b48851e
23 changed files with 3909 additions and 3659 deletions

View File

@@ -113,6 +113,9 @@ size_t inline generate<Algorithm::RANDOM_X>(Threads<OclThreads> &threads, const
auto rx = OclThreads(devices, Algorithm::RX_0);
auto wow = OclThreads(devices, Algorithm::RX_WOW);
auto arq = OclThreads(devices, Algorithm::RX_ARQ);
# ifdef XMRIG_ALGO_RX_YADA
auto yda = OclThreads(devices, Algorithm::RX_YADA);
# endif
if (!threads.isExist(Algorithm::RX_WOW) && wow != rx) {
count += threads.move(Algorithm::kRX_WOW, std::move(wow));
@@ -122,6 +125,12 @@ size_t inline generate<Algorithm::RANDOM_X>(Threads<OclThreads> &threads, const
count += threads.move(Algorithm::kRX_ARQ, std::move(arq));
}
# ifdef XMRIG_ALGO_RX_YADA
if (!threads.isExist(Algorithm::RX_YADA) && yda != rx) {
count += threads.move(Algorithm::kRX_YADA, std::move(yda));
}
# endif
count += threads.move(Algorithm::kRX, std::move(rx));
return count;