Fix compiler error, minor fix
This commit is contained in:
parent
4f78d92bc8
commit
e3d1012af8
1 changed files with 1 additions and 3 deletions
|
@ -4,8 +4,6 @@
|
|||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#include <CL/cl.h>
|
||||
|
||||
OpenCLContext::Ptr OpenCLContext::instance_ = {};
|
||||
|
||||
OpenCLContext::OpenCLHandle::OpenCLHandle()
|
||||
|
@ -563,7 +561,7 @@ OpenCLContext::OpenCLContext() : context_(nullptr), queue_(nullptr) {
|
|||
|
||||
cl_context_properties context_properties[] = {
|
||||
CL_CONTEXT_PLATFORM,
|
||||
static_cast<cl_context_properties>(first_platform_id), 0};
|
||||
reinterpret_cast<cl_context_properties>(first_platform_id), 0};
|
||||
|
||||
context_ = clCreateContextFromType(context_properties, CL_DEVICE_TYPE_GPU,
|
||||
nullptr, nullptr, &err_num);
|
||||
|
|
Loading…
Reference in a new issue