EstervQrCode 2.0.0
Library for qr code manipulation
Loading...
Searching...
No Matches
opencl_svm_definitions.hpp
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
13typedef cl_bitfield cl_device_svm_capabilities;
14typedef cl_bitfield cl_svm_mem_flags;
15typedef 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