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 #define CE_API_TINST SYS_VISIBILITY_EXPORT_TINST
10 #else
11 #define CE_API SYS_VISIBILITY_IMPORT
12 #define CE_API_TINST SYS_VISIBILITY_IMPORT_TINST
13 #endif
14 
15 #ifdef OPENCL_ENABLED
16 
17 #define CE_ENABLED
18 
19 #define __CL_ENABLE_EXCEPTIONS
20 // On Linux and Windows we can enable 2.0 since we ship our own
21 // OpenCL ICD.
22 #if defined(MBSD)
23 #define CL_TARGET_OPENCL_VERSION 120
24 #else
25 #define CL_TARGET_OPENCL_VERSION 300
26 #define CL_USE_DEPRECATED_OPENCL_1_2_APIS
27 #endif
28 #include "cl.hpp"
29 
30 #endif
31 
32 #endif
C++ bindings for OpenCL 1.0 (rev 48) and OpenCL 1.1 (rev 33)