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-21 12:44:12 +0800
commit09feb562103fec21d935980c8134759df4029cb4 (patch)
tree097fb98dedf96376562a8f92e05d79965856b514
parente22d340a341208e71bd9c35e9f6590470e5402be (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))) \