HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CE_API.h
Go to the documentation of this file.
1 
2 #ifndef __CE_API_h__
3 #define __CE_API_h__
4 
5 #include <SYS/SYS_Visibility.h>
6 
7 #ifdef CE_EXPORTS
8 #define CE_API SYS_VISIBILITY_EXPORT
9 #else
10 #define CE_API SYS_VISIBILITY_IMPORT
11 #endif
12 
13 #ifdef OPENCL_ENABLED
14 
15 #define CE_ENABLED
16 
17 #define __CL_ENABLE_EXCEPTIONS
18 // On Linux and Windows we can enable 2.0 since we ship our own
19 // OpenCL ICD.
20 #if defined(MBSD)
21 #define CL_TARGET_OPENCL_VERSION 120
22 #else
23 #define CL_TARGET_OPENCL_VERSION 300
24 #define CL_USE_DEPRECATED_OPENCL_1_2_APIS
25 #endif
26 #include "cl.hpp"
27 
28 #endif
29 
30 #endif
C++ bindings for OpenCL 1.0 (rev 48) and OpenCL 1.1 (rev 33)