summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vesely <jano.vesely@gmail.com>2017-09-19 00:16:34 -0400
committerYang Rong <rong.r.yang@intel.com>2017-09-21 17:43:05 +0800
commitc00e041224848c026918dfa4e1118d0debc19fb9 (patch)
tree4e3fae932eecf6b7ed44df7589dbc606395c9443
parent311695221756990b1b2ba9dce6f2336388a2c6f5 (diff)
libocl: Add shuffle and shuffle2 builtins for half type
Signed-off-by: Jan Vesely <jano.vesely@gmail.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
-rw-r--r--backend/src/libocl/include/ocl_misc.h2
-rw-r--r--backend/src/libocl/src/ocl_misc.cl2
2 files changed, 4 insertions, 0 deletions
diff --git a/backend/src/libocl/include/ocl_misc.h b/backend/src/libocl/include/ocl_misc.h
index cb9e5bdd..a6a29e39 100644
--- a/backend/src/libocl/include/ocl_misc.h
+++ b/backend/src/libocl/include/ocl_misc.h
@@ -52,6 +52,7 @@ DEF(char)
DEF(uchar)
DEF(short)
DEF(ushort)
+DEF(half)
DEF(int)
DEF(uint)
DEF(float)
@@ -117,6 +118,7 @@ DEF(char)
DEF(uchar)
DEF(short)
DEF(ushort)
+DEF(half)
DEF(int)
DEF(uint)
DEF(float)
diff --git a/backend/src/libocl/src/ocl_misc.cl b/backend/src/libocl/src/ocl_misc.cl
index ce139a6c..d8e09aed 100644
--- a/backend/src/libocl/src/ocl_misc.cl
+++ b/backend/src/libocl/src/ocl_misc.cl
@@ -87,6 +87,7 @@ DEF(char)
DEF(uchar)
DEF(short)
DEF(ushort)
+DEF(half)
DEF(int)
DEF(uint)
DEF(float)
@@ -202,6 +203,7 @@ DEF(char)
DEF(uchar)
DEF(short)
DEF(ushort)
+DEF(half)
DEF(int)
DEF(uint)
DEF(float)