summaryrefslogtreecommitdiff
path: root/utests/compiler_subgroup_buffer_block_write.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utests/compiler_subgroup_buffer_block_write.cpp')
-rw-r--r--utests/compiler_subgroup_buffer_block_write.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/utests/compiler_subgroup_buffer_block_write.cpp b/utests/compiler_subgroup_buffer_block_write.cpp
index fb50a941..6b257c5f 100644
--- a/utests/compiler_subgroup_buffer_block_write.cpp
+++ b/utests/compiler_subgroup_buffer_block_write.cpp
@@ -104,7 +104,7 @@ static void subgroup_generic(T* input,
globals[0] = WG_GLOBAL_SIZE;
locals[0] = WG_LOCAL_SIZE;
size_t SIMD_SIZE = 0;
- OCL_CALL(clGetKernelSubGroupInfoKHR,kernel,device,CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR,sizeof(size_t)*1,locals,sizeof(size_t),&SIMD_SIZE,NULL);
+ 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);
size_t buf_sz = VEC_SIZE * WG_GLOBAL_SIZE;
/* input and expected data */
@@ -158,6 +158,8 @@ static void subgroup_generic(T* input,
*/
void compiler_subgroup_buffer_block_write1(void)
{
+ if(!cl_check_subgroups())
+ return;
cl_uint *input = NULL;
cl_uint *expected = NULL;
OCL_CREATE_KERNEL_FROM_FILE("compiler_subgroup_buffer_block_write",
@@ -167,6 +169,8 @@ void compiler_subgroup_buffer_block_write1(void)
MAKE_UTEST_FROM_FUNCTION(compiler_subgroup_buffer_block_write1);
void compiler_subgroup_buffer_block_write2(void)
{
+ if(!cl_check_subgroups())
+ return;
cl_uint *input = NULL;
cl_uint *expected = NULL;
OCL_CREATE_KERNEL_FROM_FILE("compiler_subgroup_buffer_block_write",
@@ -176,6 +180,8 @@ void compiler_subgroup_buffer_block_write2(void)
MAKE_UTEST_FROM_FUNCTION(compiler_subgroup_buffer_block_write2);
void compiler_subgroup_buffer_block_write4(void)
{
+ if(!cl_check_subgroups())
+ return;
cl_uint *input = NULL;
cl_uint *expected = NULL;
OCL_CREATE_KERNEL_FROM_FILE("compiler_subgroup_buffer_block_write",
@@ -185,6 +191,8 @@ void compiler_subgroup_buffer_block_write4(void)
MAKE_UTEST_FROM_FUNCTION(compiler_subgroup_buffer_block_write4);
void compiler_subgroup_buffer_block_write8(void)
{
+ if(!cl_check_subgroups())
+ return;
cl_uint *input = NULL;
cl_uint *expected = NULL;
OCL_CREATE_KERNEL_FROM_FILE("compiler_subgroup_buffer_block_write",