ocl: dynamic load of OpenCL libraries
Support functions from OpenCL 1.1 / OpenCL 1.2
This commit is contained in:
19
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime.hpp
Normal file
19
modules/ocl/include/opencv2/ocl/cl_runtime/cl_runtime.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// AUTOGENERATED, DO NOT EDIT
|
||||
//
|
||||
#ifndef __OPENCV_OCL_CL_RUNTIME_HPP__
|
||||
#define __OPENCV_OCL_CL_RUNTIME_HPP__
|
||||
|
||||
#ifdef HAVE_OPENCL
|
||||
|
||||
#if defined(HAVE_OPENCL12)
|
||||
#include "cl_runtime_opencl12.hpp"
|
||||
#elif defined(HAVE_OPENCL11)
|
||||
#include "cl_runtime_opencl11.hpp"
|
||||
#else
|
||||
#error Invalid OpenCL configuration
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // __OPENCV_OCL_CL_RUNTIME_HPP__
|
@@ -48,11 +48,7 @@
|
||||
|
||||
#include "opencv2/ocl/ocl.hpp"
|
||||
|
||||
#if defined __APPLE__
|
||||
#include <OpenCL/opencl.h>
|
||||
#else
|
||||
#include <CL/opencl.h>
|
||||
#endif
|
||||
#include "opencv2/ocl/cl_runtime/cl_runtime.hpp"
|
||||
|
||||
namespace cv
|
||||
{
|
||||
|
Reference in New Issue
Block a user