1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-09 16:52:40 -05:00

Implemented option "dataset_host".

This commit is contained in:
XMRig
2019-09-12 13:49:27 +07:00
parent 7f0891a0f0
commit ad7141fe21
5 changed files with 31 additions and 9 deletions

View File

@@ -26,6 +26,9 @@
#define XMRIG_OCLRXDATASET_H
#include "base/tools/Object.h"
#include <memory>
@@ -36,17 +39,20 @@ using cl_mem = struct _cl_mem *;
namespace xmrig {
class Algorithm;
class Job;
class OclRxDataset
{
public:
XMRIG_DISABLE_COPY_MOVE(OclRxDataset)
OclRxDataset() = default;
~OclRxDataset();
inline cl_mem get() const { return m_dataset; }
void createBuffer(cl_context ctx, const Algorithm &algorithm, bool host);
void createBuffer(cl_context ctx,const Job &job, bool host);
private:
cl_mem m_dataset = nullptr;