• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* 6.9 Preprocessor Directives and Macros
2  * Some of these are handled by clang or passed by clover */
3 #if __OPENCL_VERSION__ >= 110
4 #define CLC_VERSION_1_0 100
5 #define CLC_VERSION_1_1 110
6 #endif
7 
8 #if __OPENCL_VERSION__ >= 120
9 #define CLC_VERSION_1_2 120
10 #endif
11 
12 #define NULL ((void*)0)
13 
14 #define __kernel_exec(X, typen) __kernel \
15                                 __attribute__((work_group_size_hint(X, 1, 1))) \
16                                 __attribute__((vec_type_hint(typen)))
17 
18 #define kernel_exec(X, typen) __kernel_exec(X, typen)
19