Fix compiler error, minor fix

This commit is contained in:
Stephen Seo 2021-11-16 17:41:13 +09:00
parent 4f78d92bc8
commit e3d1012af8

View file

@ -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);