diff options
author | Pan Xiuli <xiuli.pan@intel.com> | 2016-09-02 16:50:48 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-09-05 14:59:45 +0800 |
commit | 022208feb2ec6db96ea04c00c0e771cfa11b8e08 (patch) | |
tree | ab83d0390c032e0ea014c36e87e157e0b2c9a702 /utests | |
parent | 78a9b9811b1350d9c0f8f5a24809f37371d98eac (diff) | |
download | beignet-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 'utests')
-rw-r--r-- | utests/compiler_subgroup_broadcast.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/compiler_subgroup_broadcast.cpp b/utests/compiler_subgroup_broadcast.cpp index 9a7979cb..5aa749cc 100644 --- a/utests/compiler_subgroup_broadcast.cpp +++ b/utests/compiler_subgroup_broadcast.cpp @@ -108,7 +108,7 @@ static void subgroup_generic(T* input, size_t SIMD_SIZE = 0; OCL_CALL(utestclGetKernelSubGroupInfoKHR,kernel,device,CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR,sizeof(size_t)*1,locals,sizeof(size_t),&SIMD_SIZE,NULL); - cl_uint SIMD_ID = 10; + cl_uint SIMD_ID = 2; /* input and expected data */ generate_data(input, expected, SIMD_ID, SIMD_SIZE); |