[Beignet] [PATCH] Utest: Change the kernel index to fit case index

Xiuli Pan xiuli.pan at intel.com
Mon Sep 12 07:27:54 UTC 2016


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

Sub group broadcast case will fail in simd 16, for the kernel doesn't
fit the test case.

Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
 kernels/compiler_subgroup_broadcast.cl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernels/compiler_subgroup_broadcast.cl b/kernels/compiler_subgroup_broadcast.cl
index 457c826..63e9568 100644
--- a/kernels/compiler_subgroup_broadcast.cl
+++ b/kernels/compiler_subgroup_broadcast.cl
@@ -9,7 +9,7 @@ kernel void compiler_subgroup_broadcast_imm_int(global int *src,
   uint index = get_global_id(0);
 
   int val = src[index];
-  int broadcast_val = sub_group_broadcast(val, 10);
+  int broadcast_val = sub_group_broadcast(val, 2);
   dst[index] = broadcast_val;
 }
 kernel void compiler_subgroup_broadcast_int(global int *src,
-- 
2.7.4



More information about the Beignet mailing list