Restore CN-GPU

This commit is contained in:
Tony Butler 2020-06-08 14:58:35 -06:00 committed by MoneroOcean
parent 0ada4ca4ac
commit 32b49797d9
41 changed files with 8648 additions and 5926 deletions

View file

@ -28,6 +28,10 @@
#include "base/crypto/Algorithm.h"
#ifdef XMRIG_ALGO_CN_GPU
# include "backend/opencl/cl/cn/cryptonight_gpu_cl.h"
#endif
#ifdef XMRIG_ALGO_RANDOMX
# include "backend/opencl/cl/rx/randomx_cl.h"
#endif
@ -59,6 +63,11 @@ const char *xmrig::OclSource::get(const Algorithm &algorithm)
# ifdef XMRIG_ALGO_KAWPOW
if (algorithm.family() == Algorithm::KAWPOW) {
return kawpow_dag_cl;
# endif
# ifdef XMRIG_ALGO_CN_GPU
if (algorithm == Algorithm::CN_GPU) {
return cryptonight_gpu_cl;
}
# endif