libocl: Add macro define for fp16.

Submitted by junyan.he@inbox.com on July 13, 2015, 8:54 a.m.

Details

Message ID 1436777699-8864-1-git-send-email-junyan.he@inbox.com
State New
Headers show

Not browsing as part of any series.

Commit Message

junyan.he@inbox.com July 13, 2015, 8:54 a.m.
From: Junyan He <junyan.he@linux.intel.com>

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
---
 backend/src/libocl/tmpl/ocl_defines.tmpl.h | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/backend/src/libocl/tmpl/ocl_defines.tmpl.h b/backend/src/libocl/tmpl/ocl_defines.tmpl.h
index fe999b2..9c53093 100644
--- a/backend/src/libocl/tmpl/ocl_defines.tmpl.h
+++ b/backend/src/libocl/tmpl/ocl_defines.tmpl.h
@@ -35,5 +35,6 @@ 
 #define cl_khr_icd
 #define cl_khr_gl_sharing
 #define cl_khr_spir
+#define cl_khr_fp16
 
 #endif /* end of __OCL_COMMON_DEF_H__ */

Comments

LGTM, will push it later, thanks.

> -----Original Message-----

> From: Beignet [mailto:beignet-bounces@lists.freedesktop.org] On Behalf Of

> junyan.he@inbox.com

> Sent: Monday, July 13, 2015 16:55

> To: beignet@lists.freedesktop.org

> Cc: Junyan He

> Subject: [Beignet] [PATCH] libocl: Add macro define for fp16.

> 

> From: Junyan He <junyan.he@linux.intel.com>

> 

> Signed-off-by: Junyan He <junyan.he@linux.intel.com>

> ---

>  backend/src/libocl/tmpl/ocl_defines.tmpl.h | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/backend/src/libocl/tmpl/ocl_defines.tmpl.h

> b/backend/src/libocl/tmpl/ocl_defines.tmpl.h

> index fe999b2..9c53093 100644

> --- a/backend/src/libocl/tmpl/ocl_defines.tmpl.h

> +++ b/backend/src/libocl/tmpl/ocl_defines.tmpl.h

> @@ -35,5 +35,6 @@

>  #define cl_khr_icd

>  #define cl_khr_gl_sharing

>  #define cl_khr_spir

> +#define cl_khr_fp16

> 

>  #endif /* end of __OCL_COMMON_DEF_H__ */

> --

> 1.9.1

> 

> _______________________________________________

> Beignet mailing list

> Beignet@lists.freedesktop.org

> http://lists.freedesktop.org/mailman/listinfo/beignet