Added basic cn/gpu support.
This commit is contained in:
parent
3d3a32087f
commit
859626cbe3
21 changed files with 1544 additions and 91 deletions
|
@ -23,16 +23,28 @@
|
|||
*/
|
||||
|
||||
|
||||
#include "backend/opencl/cl/cn/cryptonight_cl.h"
|
||||
#include "backend/opencl/cl/OclSource.h"
|
||||
|
||||
#include "backend/opencl/cl/cn/cryptonight_cl.h"
|
||||
#include "crypto/common/Algorithm.h"
|
||||
|
||||
|
||||
#ifdef XMRIG_ALGO_CN_GPU
|
||||
# include "backend/opencl/cl/cn/cryptonight_gpu_cl.h"
|
||||
#endif
|
||||
|
||||
|
||||
const char *xmrig::OclSource::get(const Algorithm &algorithm)
|
||||
{
|
||||
if (algorithm.family() == Algorithm::RANDOM_X) {
|
||||
return nullptr; // FIXME
|
||||
}
|
||||
|
||||
# ifdef XMRIG_ALGO_CN_GPU
|
||||
if (algorithm == Algorithm::CN_GPU) {
|
||||
return cryptonight_gpu_cl;
|
||||
}
|
||||
# endif
|
||||
|
||||
return cryptonight_cl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue