[Beignet] [PATCH] backend: add convert_double_R(float x)
rander
rander.wang at intel.com
Fri Mar 17 06:43:34 UTC 2017
just call convert_double(float) for double can fully cover
the data range of float, so no data lost
Signed-off-by: rander <rander.wang at intel.com>
---
backend/src/libocl/script/ocl_convert.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/backend/src/libocl/script/ocl_convert.sh b/backend/src/libocl/script/ocl_convert.sh
index 31fdb6f..bc02de3 100755
--- a/backend/src/libocl/script/ocl_convert.sh
+++ b/backend/src/libocl/script/ocl_convert.sh
@@ -1054,10 +1054,10 @@ for vector_length in $VECTOR_LENGTHS; do
done
done
-# convert_double_roundingmode( int32, int16 ,int8)
-ITYPES=" double:8 int:4 uint:4 short:2 ushort:2 char:1 uchar:1"
+# convert_double_roundingmode( double, float ,int32, int16 ,int8)
+TTYPES=" double:8 float:4 int:4 uint:4 short:2 ushort:2 char:1 uchar:1"
for vector_length in $VECTOR_LENGTHS; do
- for ftype in $ITYPES; do
+ for ftype in $TTYPES; do
fbasetype=`IFS=:; set -- dummy $ftype; echo $2`
if test $vector_length -eq 1; then
--
2.7.4
More information about the Beignet
mailing list