Also specify use of OpenCL 3.0 instead of depending on default.
${PNG_LIBRARIES}
${FFMPEG_LIBAVCODEC_LINK_LIBRARIES}
)
+
+target_compile_definitions(DitheringProject PRIVATE
+ CL_TARGET_OPENCL_VERSION=300)
}
// uses first available device
- queue_ = clCreateCommandQueue(context_, devices.at(0), 0, &err_num);
+ queue_ = clCreateCommandQueueWithProperties(context_, devices.at(0), nullptr,
+ &err_num);
if (err_num != CL_SUCCESS) {
std::cout << "ERROR: OpenCLContext: Failed to create command queue"
<< std::endl;