Home | History | Annotate | Download | only in runtime
      1 /* See LICENSE file in the root OpenCV directory */
      2 
      3 #ifndef __OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_DEFINITIONS_HPP__
      4 #define __OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_DEFINITIONS_HPP__
      5 
      6 #if defined(HAVE_OPENCL_SVM)
      7 #if defined(CL_VERSION_2_0)
      8 
      9 // OpenCL 2.0 contains SVM definitions
     10 
     11 #else
     12 
     13 typedef cl_bitfield cl_device_svm_capabilities;
     14 typedef cl_bitfield cl_svm_mem_flags;
     15 typedef cl_uint     cl_kernel_exec_info;
     16 
     17 //
     18 // TODO Add real values after OpenCL 2.0 release
     19 //
     20 
     21 #ifndef CL_DEVICE_SVM_CAPABILITIES
     22 #define CL_DEVICE_SVM_CAPABILITIES 0x1053
     23 
     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)
     28 #endif
     29 
     30 #ifndef CL_MEM_SVM_FINE_GRAIN_BUFFER
     31 #define CL_MEM_SVM_FINE_GRAIN_BUFFER (1 << 10)
     32 #endif
     33 
     34 #ifndef CL_MEM_SVM_ATOMICS
     35 #define CL_MEM_SVM_ATOMICS (1 << 11)
     36 #endif
     37 
     38 
     39 #endif // CL_VERSION_2_0
     40 #endif // HAVE_OPENCL_SVM
     41 
     42 #endif // __OPENCV_CORE_OCL_RUNTIME_OPENCL_SVM_DEFINITIONS_HPP__
     43