ocl: OpenCL headers are located in "CL" subfolder (3rdparty/include)

pull/6060/head
Alexander Alekhin 9 years ago
parent 2c4ed7f8a5
commit 87bbaa2c27
  1. 5
      cmake/checks/opencl.cpp
  2. 4
      modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp
  3. 4
      modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_gl.hpp
  4. 4
      modules/core/src/opencl/runtime/generator/template/opencl_core.hpp.in
  5. 4
      modules/core/src/opencl/runtime/generator/template/opencl_gl.hpp.in

@ -1,8 +1,5 @@
#if defined __APPLE__
#include <OpenCL/cl.h>
#else
// custom OpenCL headers are located in "CL" subfolder (3rdparty/include/...)
#include <CL/cl.h>
#endif
#ifndef _MSC_VER
#ifdef CL_VERSION_1_2

@ -95,11 +95,7 @@
#define clUnloadPlatformCompiler clUnloadPlatformCompiler_
#define clWaitForEvents clWaitForEvents_
#if defined __APPLE__
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
// generated by parser_cl.py
#undef clBuildProgram

@ -17,11 +17,7 @@
#define clGetGLObjectInfo clGetGLObjectInfo_
#define clGetGLTextureInfo clGetGLTextureInfo_
#if defined __APPLE__
#include <OpenCL/cl_gl.h>
#else
#include <CL/cl_gl.h>
#endif
// generated by parser_cl.py
#undef clCreateFromGLBuffer

@ -4,11 +4,7 @@
@CL_REMAP_ORIGIN@
#if defined __APPLE__
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
@CL_REMAP_DYNAMIC@

@ -4,11 +4,7 @@
@CL_REMAP_ORIGIN@
#if defined __APPLE__
#include <OpenCL/cl_gl.h>
#else
#include <CL/cl_gl.h>
#endif
@CL_REMAP_DYNAMIC@

Loading…
Cancel
Save