summaryrefslogtreecommitdiff
path: root/utests
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2015-12-23 08:15:08 +0800
committerYang Rong <rong.r.yang@intel.com>2016-01-08 14:20:50 +0800
commite5bbba5b0fd856f71df9c22e13a512865f22d5df (patch)
tree8d42917bf7e36284e516340581126f7ce282dec3 /utests
parentfc410ee2d6138bac821fe20a0d35c3b283244071 (diff)
change built-in function name from get_sub_group_size to get_max_sub_group_size
Fix bug at https://bugs.freedesktop.org/show_bug.cgi?id=93469 The fucntion is mapped to OP_SIMD_SIZE which returns the constant SIMD width, the correct function name is get_max_sub_group_size. contributor: Georg Kolling <georg.kolling@gmail.com> Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests')
-rw-r--r--utests/CMakeLists.txt2
-rw-r--r--utests/compiler_get_max_sub_group_size.cpp (renamed from utests/compiler_get_sub_group_size.cpp)6
2 files changed, 4 insertions, 4 deletions
diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt
index d846b7b7..2c6aea47 100644
--- a/utests/CMakeLists.txt
+++ b/utests/CMakeLists.txt
@@ -220,7 +220,7 @@ set (utests_sources
runtime_use_host_ptr_buffer.cpp
runtime_alloc_host_ptr_buffer.cpp
runtime_use_host_ptr_image.cpp
- compiler_get_sub_group_size.cpp
+ compiler_get_max_sub_group_size.cpp
compiler_get_sub_group_id.cpp
compiler_sub_group_shuffle.cpp
builtin_global_linear_id.cpp
diff --git a/utests/compiler_get_sub_group_size.cpp b/utests/compiler_get_max_sub_group_size.cpp
index 20339d72..debdf940 100644
--- a/utests/compiler_get_sub_group_size.cpp
+++ b/utests/compiler_get_max_sub_group_size.cpp
@@ -1,11 +1,11 @@
#include "utest_helper.hpp"
-void compiler_get_sub_group_size(void)
+void compiler_get_max_sub_group_size(void)
{
const size_t n = 256;
// Setup kernel and buffers
- OCL_CREATE_KERNEL("compiler_get_sub_group_size");
+ OCL_CREATE_KERNEL("compiler_get_max_sub_group_size");
OCL_CREATE_BUFFER(buf[0], 0, n * sizeof(int), NULL);
OCL_SET_ARG(0, sizeof(cl_mem), &buf[0]);
@@ -29,4 +29,4 @@ void compiler_get_sub_group_size(void)
OCL_UNMAP_BUFFER(0);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_get_sub_group_size);
+MAKE_UTEST_FROM_FUNCTION(compiler_get_max_sub_group_size);