Implemented remaining kernels.

This commit is contained in:
XMRig 2019-09-01 14:16:19 +07:00
parent 138304ff51
commit e2d2591281
7 changed files with 270 additions and 10 deletions

View file

@ -34,6 +34,8 @@ namespace xmrig {
class Cn0Kernel;
class Cn1Kernel;
class Cn2Kernel;
class CnBranchKernel;
class OclCnRunner : public OclBaseRunner
@ -59,11 +61,14 @@ private:
};
cl_mem m_branches[BRANCH_MAX] = { nullptr, nullptr, nullptr, nullptr };
cl_mem m_scratchpads = nullptr;
cl_mem m_states = nullptr;
Cn0Kernel *m_cn0 = nullptr;
Cn1Kernel *m_cn1 = nullptr;
cl_mem m_scratchpads = nullptr;
cl_mem m_states = nullptr;
Cn0Kernel *m_cn0 = nullptr;
Cn1Kernel *m_cn1 = nullptr;
Cn2Kernel *m_cn2 = nullptr;
std::vector<cl_mem> m_branches = { nullptr, nullptr, nullptr, nullptr };
std::vector<CnBranchKernel *> m_branchKernels = { nullptr, nullptr, nullptr, nullptr };
};