AstroBWT OpenCL code

This commit is contained in:
SChernykh 2020-03-22 22:36:21 +01:00
parent 50eb7ba2fd
commit fbedf197ab
34 changed files with 2106 additions and 6 deletions

View file

@ -36,6 +36,10 @@
# include "backend/opencl/cl/rx/randomx_cl.h"
#endif
#ifdef XMRIG_ALGO_ASTROBWT
# include "backend/opencl/cl/astrobwt/astrobwt_cl.h"
#endif
const char *xmrig::OclSource::get(const Algorithm &algorithm)
{
@ -45,6 +49,12 @@ const char *xmrig::OclSource::get(const Algorithm &algorithm)
}
# endif
# ifdef XMRIG_ALGO_ASTROBWT
if (algorithm.family() == Algorithm::ASTROBWT) {
return astrobwt_cl;
}
# endif
# ifdef XMRIG_ALGO_CN_GPU
if (algorithm == Algorithm::CN_GPU) {
return cryptonight_gpu_cl;