[Beignet] [PATCH V2 3/9] Libocl: Add vload\store for half type

Xiuli Pan xiuli.pan at intel.com
Mon Aug 8 03:31:21 UTC 2016


From: Pan Xiuli <xiuli.pan at intel.com>

Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
 backend/src/libocl/include/ocl_vload.h | 1 +
 backend/src/libocl/src/ocl_vload.cl    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/backend/src/libocl/include/ocl_vload.h b/backend/src/libocl/include/ocl_vload.h
index 1e6871e..c26f640 100644
--- a/backend/src/libocl/include/ocl_vload.h
+++ b/backend/src/libocl/include/ocl_vload.h
@@ -88,6 +88,7 @@ DECL_BYTE_RW_ALL(char)
 DECL_BYTE_RW_ALL(uchar)
 DECL_BYTE_RW_ALL(short)
 DECL_BYTE_RW_ALL(ushort)
+DECL_BYTE_RW_ALL(half)
 DECL_UNTYPED_RW_ALL(int)
 DECL_UNTYPED_RW_ALL(uint)
 DECL_UNTYPED_RW_ALL(long)
diff --git a/backend/src/libocl/src/ocl_vload.cl b/backend/src/libocl/src/ocl_vload.cl
index 38a87c4..bac0ed7 100644
--- a/backend/src/libocl/src/ocl_vload.cl
+++ b/backend/src/libocl/src/ocl_vload.cl
@@ -120,6 +120,7 @@ OVERLOADABLE void vstore16(TYPE##16 v, size_t offset, SPACE TYPE *p) { \
   DECL_BYTE_WR_SPACE(TYPE, __private)
 
 DECL_BYTE_RW_ALL(char)
+DECL_BYTE_RW_ALL(half)
 DECL_BYTE_RW_ALL(uchar)
 DECL_BYTE_RW_ALL(short)
 DECL_BYTE_RW_ALL(ushort)
-- 
2.7.4



More information about the Beignet mailing list