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
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/bin/bash -e
|
||||
echo "Generate files for CL runtime..."
|
||||
cat sources/opencl11/cl.h | python parser_cl.py cl_runtime_opencl11
|
||||
cat sources/opencl12/cl.h | python parser_cl.py cl_runtime_opencl12
|
||||
cat sources/cl.h | python parser_cl.py cl_runtime_opencl
|
||||
cat sources/clAmdBlas.h | python parser_clamdblas.py
|
||||
cat sources/clAmdFft.h | python parser_clamdfft.py
|
||||
echo "Generate files for CL runtime... Done"
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
#ifndef __OPENCV_OCL_CL_RUNTIME_OPENCL_HPP__
|
||||
#define __OPENCV_OCL_CL_RUNTIME_OPENCL_HPP__
|
||||
|
||||
#ifdef HAVE_OPENCL
|
||||
|
||||
#if defined __APPLE__ && !defined(IOS)
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
|
||||
@CL_REMAP_ORIGIN@
|
||||
|
||||
#if defined __APPLE__
|
||||
@@ -27,8 +21,4 @@
|
||||
|
||||
@CL_FN_DECLARATIONS@
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // __OPENCV_OCL_CL_RUNTIME_OPENCL_HPP__
|
||||
|
||||
Reference in New Issue
Block a user