From e3d1012af80b1d07b6aabd7aa90b311e7a5ea7d9 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 16 Nov 2021 17:41:13 +0900 Subject: [PATCH] Fix compiler error, minor fix --- src/opencl_handle.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);