3#ifndef OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_DEFINITIONS_HPP
4#define OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_DEFINITIONS_HPP
6#if defined(HAVE_OPENCL_SVM)
7#if defined(CL_VERSION_2_0)
13typedef cl_bitfield cl_device_svm_capabilities;
14typedef cl_bitfield cl_svm_mem_flags;
15typedef cl_uint cl_kernel_exec_info;
21#ifndef CL_DEVICE_SVM_CAPABILITIES
22#define CL_DEVICE_SVM_CAPABILITIES 0x1053
24#define CL_DEVICE_SVM_COARSE_GRAIN_BUFFER (1 << 0)
25#define CL_DEVICE_SVM_FINE_GRAIN_BUFFER (1 << 1)
26#define CL_DEVICE_SVM_FINE_GRAIN_SYSTEM (1 << 2)
27#define CL_DEVICE_SVM_ATOMICS (1 << 3)
30#ifndef CL_MEM_SVM_FINE_GRAIN_BUFFER
31#define CL_MEM_SVM_FINE_GRAIN_BUFFER (1 << 10)
34#ifndef CL_MEM_SVM_ATOMICS
35#define CL_MEM_SVM_ATOMICS (1 << 11)