ocl: force to use Khronos OpenCL headers
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
#include "precomp.hpp"
|
||||
|
||||
#if defined(HAVE_OPENCL) && (!defined(__APPLE__) || defined(IOS))
|
||||
|
||||
#if defined(BUILD_SHARED_LIBS) && (defined WIN32 || defined _WIN32 || defined WINCE)
|
||||
#define CL_RUNTIME_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CL_RUNTIME_EXPORT
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_OPENCL) && !defined(HAVE_OPENCL_STATIC)
|
||||
|
||||
#include "opencv2/ocl/cl_runtime/cl_runtime.hpp"
|
||||
|
||||
@@ -94,12 +87,6 @@ static void* opencl_check_fn(int ID)
|
||||
return func;
|
||||
}
|
||||
|
||||
#if defined(HAVE_OPENCL12)
|
||||
#include "cl_runtime_opencl12_impl.hpp"
|
||||
#elif defined(HAVE_OPENCL11)
|
||||
#include "cl_runtime_opencl11_impl.hpp"
|
||||
#else
|
||||
#error Invalid OpenCL configuration
|
||||
#endif
|
||||
#include "cl_runtime_opencl_impl.hpp"
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user