diff options
author | Zhigang Gong <zhigang.gong@intel.com> | 2014-09-09 17:05:37 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-09-09 17:10:45 +0800 |
commit | d68ab34bf958b965522856e1c9f361aa5ba3c075 (patch) | |
tree | 14e970595d73253da43e754db5dc260d41457737 | |
parent | 10fc4564e4110acf995cc6a16347ad6c39fc0c16 (diff) |
GBE: fix some predfeined OCL macros.
Now beignet is a pure opencl 1.2 implementation.
Set some predefined macros correctly.
__OPENCL_C_VERSION__ and __OPENCL_VERSION__ should
be 120 by default.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
-rwxr-xr-x | backend/src/ocl_stdlib.tmpl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h index 2e37513..6f05dac 100755 --- a/backend/src/ocl_stdlib.tmpl.h +++ b/backend/src/ocl_stdlib.tmpl.h @@ -120,9 +120,13 @@ typedef size_t __event_t; ///////////////////////////////////////////////////////////////////////////// // OpenCL preprocessor directives & macros ///////////////////////////////////////////////////////////////////////////// -#define __OPENCL_VERSION__ 110 +#define __OPENCL_VERSION__ 120 #define __CL_VERSION_1_0__ 100 #define __CL_VERSION_1_1__ 110 +#define __CL_VERSION_1_2__ 120 +#ifndef __OPENCL_C_VERSION +#define __OPENCL_C_VERSION__ 120 +#endif #define __ENDIAN_LITTLE__ 1 #define __IMAGE_SUPPORT__ 1 #define __kernel_exec(X, TYPE) __kernel __attribute__((work_group_size_hint(X,1,1))) \ |