diff --git a/src/opencl_handle.cc b/src/opencl_handle.cc index 1710414..9cfff81 100644 --- a/src/opencl_handle.cc +++ b/src/opencl_handle.cc @@ -4,8 +4,6 @@ #include #include -#include - 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(first_platform_id), 0}; + reinterpret_cast(first_platform_id), 0}; context_ = clCreateContextFromType(context_properties, CL_DEVICE_TYPE_GPU, nullptr, nullptr, &err_num);