42
#ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP
43
#define OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP
47
#ifndef CL_RUNTIME_EXPORT
48
#if (defined(BUILD_SHARED_LIBS) || defined(OPENCV_CORE_SHARED)) && (defined _WIN32 || defined WINCE) && \
49
!(defined(__OPENCV_BUILD) && defined(OPENCV_MODULE_IS_PART_OF_WORLD))
50
#define CL_RUNTIME_EXPORT __declspec(dllimport)
52
#define CL_RUNTIME_EXPORT
56
#ifdef HAVE_OPENCL_SVM
57
#define clSVMAlloc clSVMAlloc_
58
#define clSVMFree clSVMFree_
59
#define clSetKernelArgSVMPointer clSetKernelArgSVMPointer_
60
#define clSetKernelExecInfo clSetKernelExecInfo_
61
#define clEnqueueSVMFree clEnqueueSVMFree_
62
#define clEnqueueSVMMemcpy clEnqueueSVMMemcpy_
63
#define clEnqueueSVMMemFill clEnqueueSVMMemFill_
64
#define clEnqueueSVMMap clEnqueueSVMMap_
65
#define clEnqueueSVMUnmap clEnqueueSVMUnmap_
68
#include "autogenerated/opencl_core.hpp"
70
#ifndef CL_DEVICE_DOUBLE_FP_CONFIG
71
#define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
74
#ifndef CL_DEVICE_HALF_FP_CONFIG
75
#define CL_DEVICE_HALF_FP_CONFIG 0x1033
78
#ifndef CL_VERSION_1_2
79
#define CV_REQUIRE_OPENCL_1_2_ERROR CV_Error(cv::Error::OpenCLApiCallError, "OpenCV compiled without OpenCL v1.2 support, so we can't use functionality from OpenCL v1.2")