[Beignet] [PATCH] fix utest simd_any for simd width 8 and 16
Guo Yejun
yejun.guo at intel.com
Tue Jun 10 14:27:26 PDT 2014
Signed-off-by: Guo Yejun <yejun.guo at intel.com>
---
kernels/compiler_simd_any.cl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernels/compiler_simd_any.cl b/kernels/compiler_simd_any.cl
index 6cc287f..3b04f82 100644
--- a/kernels/compiler_simd_any.cl
+++ b/kernels/compiler_simd_any.cl
@@ -3,7 +3,7 @@ __kernel void compiler_simd_any(global int *src, global int *dst)
int i = get_global_id(0);
if (i % 2 == 1) {
- if (__gen_ocl_simd_any(src[i] == 5))
+ if (__gen_ocl_simd_any(src[i] == 5) || __gen_ocl_simd_any(src[i] == 9))
dst[i] = 1;
else if (__gen_ocl_simd_any(src[i] == 6))
dst[i] = 0;
--
1.8.3.2
More information about the Beignet
mailing list