KawPow WIP
This commit is contained in:
@@ -28,10 +28,6 @@
|
||||
#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
|
||||
@@ -40,6 +36,11 @@
|
||||
# include "backend/opencl/cl/astrobwt/astrobwt_cl.h"
|
||||
#endif
|
||||
|
||||
#ifdef XMRIG_ALGO_KAWPOW
|
||||
# include "backend/opencl/cl/kawpow/kawpow_cl.h"
|
||||
# include "backend/opencl/cl/kawpow/kawpow_dag_cl.h"
|
||||
#endif
|
||||
|
||||
|
||||
const char *xmrig::OclSource::get(const Algorithm &algorithm)
|
||||
{
|
||||
@@ -55,9 +56,9 @@ const char *xmrig::OclSource::get(const Algorithm &algorithm)
|
||||
}
|
||||
# endif
|
||||
|
||||
# ifdef XMRIG_ALGO_CN_GPU
|
||||
if (algorithm == Algorithm::CN_GPU) {
|
||||
return cryptonight_gpu_cl;
|
||||
# ifdef XMRIG_ALGO_KAWPOW
|
||||
if (algorithm.family() == Algorithm::KAWPOW) {
|
||||
return kawpow_dag_cl;
|
||||
}
|
||||
# endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user