[Beignet] [PATCH] libocl: Provide specs required CL_VERSION macros
Yang, Rong R
rong.r.yang at intel.com
Thu Oct 20 03:25:11 UTC 2016
Yes, you are right, LGTM, will push it later.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Jan Vesely
> Sent: Thursday, October 20, 2016 0:48
> To: beignet at lists.freedesktop.org
> Subject: [Beignet] [PATCH] libocl: Provide specs required CL_VERSION
> macros
>
> Specs mandate CL_VERSION_X_Y without underscores.
>
> Signed-off-by: Jan Vesely <jano.vesely at gmail.com>
> ---
>
> I'm not sure if you want to keep the old underscored versions. I left them as
> they were.
>
> backend/src/libocl/tmpl/ocl_defines.tmpl.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> 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))) \
> --
> 2.7.4
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list