mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 01:22:45 -05:00
Better cl_context wrapping.
This commit is contained in:
@@ -27,6 +27,13 @@
|
||||
#include "backend/opencl/wrappers/OclContext.h"
|
||||
|
||||
|
||||
xmrig::OclContext::OclContext(const OclDevice &device)
|
||||
{
|
||||
std::vector<cl_device_id> ids = { device.id() };
|
||||
m_ctx = OclLib::createContext(ids);
|
||||
}
|
||||
|
||||
|
||||
xmrig::OclContext::~OclContext()
|
||||
{
|
||||
if (m_ctx) {
|
||||
|
||||
Reference in New Issue
Block a user