Define double OpenCL threads in simple way.
This commit is contained in:
parent
e7b2b4fc3d
commit
1ad30d50a6
11 changed files with 73 additions and 67 deletions
|
@ -34,8 +34,8 @@
|
|||
#include "base/tools/String.h"
|
||||
|
||||
|
||||
typedef struct _cl_device_id *cl_device_id;
|
||||
typedef struct _cl_platform_id *cl_platform_id;
|
||||
using cl_device_id = struct _cl_device_id *;
|
||||
using cl_platform_id = struct _cl_platform_id *;
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
@ -59,7 +59,7 @@ public:
|
|||
Navi_10
|
||||
};
|
||||
|
||||
OclDevice() = default;
|
||||
OclDevice() = delete;
|
||||
OclDevice(uint32_t index, cl_device_id id, cl_platform_id platform);
|
||||
|
||||
size_t freeMem() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue