libocl: Provide specs required CL_VERSION macros

Graphics / Beignet - Jan Vesely [gmail.com] - 20 October 2016 00:29 UTC

Specs mandate CL_VERSION_X_Y without underscores.

###

diff --git a/backend/src/libocl/tmpl/ocl_defines.tmpl.h b/backend/src/libocl/tmpl/ocl_defines.tmpl.h
index f840a82..f5c65df 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))) \

610379b libocl: Provide specs required CL_VERSION macros
backend/src/libocl/tmpl/ocl_defines.tmpl.h | 3 +++
1 file changed, 3 insertions(+)

Upstream: cgit.freedesktop.org


  • Share