summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vesely <jano.vesely@gmail.com>2016-10-19 12:48:08 -0400
committerYang Rong <rong.r.yang@intel.com>2016-10-20 13:29:35 +0800
commit610379bc6d6317859aff3f5c29608bd2df64efaa (patch)
treead3b37a7a7480d50d03789f7f08618827d4cfe2c
parentd2c531299fd6c0a88f7b7b5798205018ab1f7cdf (diff)
libocl: Provide specs required CL_VERSION macros
Specs mandate CL_VERSION_X_Y without underscores. Signed-off-by: Jan Vesely <jano.vesely@gmail.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--backend/src/libocl/tmpl/ocl_defines.tmpl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/src/libocl/tmpl/ocl_defines.tmpl.h b/backend/src/libocl/tmpl/ocl_defines.tmpl.h
index f840a82a..f5c65df5 100644
--- a/backend/src/libocl/tmpl/ocl_defines.tmpl.h
+++ b/backend/src/libocl/tmpl/ocl_defines.tmpl.h
@@ -22,6 +22,9 @@
#define __CL_VERSION_1_0__ 100
#define __CL_VERSION_1_1__ 110
#define __CL_VERSION_1_2__ 120
+#define CL_VERSION_1_0 100
+#define CL_VERSION_1_1 110
+#define CL_VERSION_1_2 120
#define __ENDIAN_LITTLE__ 1
#define __IMAGE_SUPPORT__ 1
#define __kernel_exec(X, TYPE) __kernel __attribute__((work_group_size_hint(X,1,1))) \