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