summaryrefslogtreecommitdiff
path: root/kernels
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2016-09-02 16:50:48 +0800
committerYang Rong <rong.r.yang@intel.com>2016-09-05 14:59:45 +0800
commit022208feb2ec6db96ea04c00c0e771cfa11b8e08 (patch)
treeab83d0390c032e0ea014c36e87e157e0b2c9a702 /kernels
parent78a9b9811b1350d9c0f8f5a24809f37371d98eac (diff)
downloadbeignet-022208feb2ec6db96ea04c00c0e771cfa11b8e08.tar.gz
Utest: Fix sub group broadcast for simd8
In simd8 mode, the sub group size is 8. We should use some index less than 8. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'kernels')
-rw-r--r--kernels/compiler_subgroup_broadcast.cl2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernels/compiler_subgroup_broadcast.cl b/kernels/compiler_subgroup_broadcast.cl
index 8c155ee8..457c8265 100644
--- a/kernels/compiler_subgroup_broadcast.cl
+++ b/kernels/compiler_subgroup_broadcast.cl
@@ -42,7 +42,7 @@ kernel void compiler_subgroup_broadcast_half(global half *src,
half val = src[index];
half broadcast_val = sub_group_broadcast(val, simd_id);
- printf("%d val %d is %d\n",index,as_ushort(val), as_ushort(broadcast_val));
+ //printf("%d val %d is %d\n",index,as_ushort(val), as_ushort(broadcast_val));
dst[index] = broadcast_val;
}
#endif