[Beignet] [PATCH] fix utest simd_any for simd width 8 and 16

Zhigang Gong zhigang.gong at linux.intel.com
Tue Jun 10 21:52:05 PDT 2014


This version LGTM, will push latter, thanks.

On Wed, Jun 11, 2014 at 05:27:26AM +0800, Guo Yejun wrote:
> 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
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list