[Beignet] [PATCH 1/2] Runtime: vendor specified information is required for CL_DEVICE_VERSION/OPENCL_C_VERSION.

Song, Ruiling ruiling.song at intel.com
Sun Sep 1 22:59:20 PDT 2013


LGTM

-----Original Message-----
From: beignet-bounces+ruiling.song=intel.com at lists.freedesktop.org [mailto:beignet-bounces+ruiling.song=intel.com at lists.freedesktop.org] On Behalf Of Zhigang Gong
Sent: Monday, September 02, 2013 11:29 AM
To: beignet at lists.freedesktop.org
Subject: Re: [Beignet] [PATCH 1/2] Runtime: vendor specified information is required for CL_DEVICE_VERSION/OPENCL_C_VERSION.

ping for comments.

On Thu, Aug 29, 2013 at 10:47:34AM +0800, Zhigang Gong wrote:
> Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
> ---
>  src/cl_platform_id.h |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/src/cl_platform_id.h b/src/cl_platform_id.h index 
> b8f7d61..6b70aee 100644
> --- a/src/cl_platform_id.h
> +++ b/src/cl_platform_id.h
> @@ -62,9 +62,10 @@ extern cl_int cl_get_platform_info(cl_platform_id    platform,
>  #define _STR(x) #x
>  #define _JOINT(x, y) _STR(x) "." _STR(y)
>  
> -#define LIBCL_VERSION_STRING "OpenCL " _JOINT(LIBCL_C_VERSION_MAJOR, 
> LIBCL_C_VERSION_MINOR) -#define LIBCL_C_VERSION_STRING "OpenCL C " 
> _JOINT(LIBCL_C_VERSION_MAJOR, LIBCL_C_VERSION_MINOR)
> +
>  #define LIBCL_DRIVER_VERSION_STRING 
> _JOINT(LIBCL_DRIVER_VERSION_MAJOR, LIBCL_DRIVER_VERSION_MINOR)
> +#define LIBCL_VERSION_STRING "OpenCL " _JOINT(LIBCL_C_VERSION_MAJOR, 
> +LIBCL_C_VERSION_MINOR) " beignet " LIBCL_DRIVER_VERSION_STRING 
> +#define LIBCL_C_VERSION_STRING "OpenCL C " 
> +_JOINT(LIBCL_C_VERSION_MAJOR, LIBCL_C_VERSION_MINOR) " beignet " 
> +LIBCL_DRIVER_VERSION_STRING
>  
>  #endif /* __CL_PLATFORM_ID_H__ */
>  
> --
> 1.7.9.5
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list