[06/12] Utest: Remove old sub_group_all/any utest

Submitted by Pan Xiuli on May 26, 2016, 3:14 a.m.

Details

Message ID 1464232467-16231-6-git-send-email-xiuli.pan@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Pan Xiuli May 26, 2016, 3:14 a.m.
From: Pan Xiuli <xiuli.pan@intel.com>

This utest does not follow spec, so just remove them.

Signed-off-by: Pan Xiuli <xiuli.pan@intel.com>
---
 kernels/compiler_sub_group_all.cl | 12 -----------
 kernels/compiler_sub_group_any.cl | 15 --------------
 utests/CMakeLists.txt             |  2 --
 utests/compiler_sub_group_all.cpp | 43 ---------------------------------------
 utests/compiler_sub_group_any.cpp | 43 ---------------------------------------
 5 files changed, 115 deletions(-)
 delete mode 100644 kernels/compiler_sub_group_all.cl
 delete mode 100644 kernels/compiler_sub_group_any.cl
 delete mode 100644 utests/compiler_sub_group_all.cpp
 delete mode 100644 utests/compiler_sub_group_any.cpp

Patch hide | download patch | download mbox

diff --git a/kernels/compiler_sub_group_all.cl b/kernels/compiler_sub_group_all.cl
deleted file mode 100644
index 30db5bc..0000000
--- a/kernels/compiler_sub_group_all.cl
+++ /dev/null
@@ -1,12 +0,0 @@ 
-__kernel void compiler_sub_group_all(global int *src, global int *dst)
-{
-  int i = get_global_id(0);
-  if (i % 2 == 1) {
-    if (sub_group_all((src[i] < 12) && (src[i] > 0)))
-      dst[i] = 1;
-    else
-      dst[i] = 2;
-  }
-  else
-    dst[i] = 3;
-}
diff --git a/kernels/compiler_sub_group_any.cl b/kernels/compiler_sub_group_any.cl
deleted file mode 100644
index 15702db..0000000
--- a/kernels/compiler_sub_group_any.cl
+++ /dev/null
@@ -1,15 +0,0 @@ 
-__kernel void compiler_sub_group_any(global int *src, global int *dst)
-{
-  int i = get_global_id(0);
-
-  if (i % 2 == 1) {
-    if (sub_group_any(src[i] == 5) || sub_group_any(src[i] == 9))
-      dst[i] = 1;
-    else if (sub_group_any(src[i] == 6))
-      dst[i] = 0;
-    else
-      dst[i] = 2;
-  }
-  else
-    dst[i] = 3;
-}
diff --git a/utests/CMakeLists.txt b/utests/CMakeLists.txt
index 76b50a5..7ea10e0 100644
--- a/utests/CMakeLists.txt
+++ b/utests/CMakeLists.txt
@@ -241,8 +241,6 @@  set (utests_sources
   compiler_private_const.cpp
   compiler_private_data_overflow.cpp
   compiler_getelementptr_bitcast.cpp
-  compiler_sub_group_any.cpp
-  compiler_sub_group_all.cpp
   compiler_time_stamp.cpp
   compiler_double_precision.cpp
   compiler_double.cpp
diff --git a/utests/compiler_sub_group_all.cpp b/utests/compiler_sub_group_all.cpp
deleted file mode 100644
index d8e4130..0000000
--- a/utests/compiler_sub_group_all.cpp
+++ /dev/null
@@ -1,43 +0,0 @@ 
-#include "utest_helper.hpp"
-
-void compiler_sub_group_all(void)
-{
-  const size_t n = 40;
-
-  // Setup kernel and buffers
-  OCL_CREATE_KERNEL("compiler_sub_group_all");
-  OCL_CREATE_BUFFER(buf[0], 0, n * sizeof(int), NULL);
-  OCL_CREATE_BUFFER(buf[1], 0, n * sizeof(int), NULL);
-  OCL_SET_ARG(0, sizeof(cl_mem), &buf[0]);
-  OCL_SET_ARG(1, sizeof(cl_mem), &buf[1]);
-
-  globals[0] = n;
-  locals[0] = 10;
-
-  OCL_MAP_BUFFER(0);
-  for (int32_t i = 0; i < (int32_t) n; ++i)
-    ((int*)buf_data[0])[i] = i;
-  OCL_UNMAP_BUFFER(0);
-
-  // Run the kernel on GPU
-  OCL_NDRANGE(1);
-
-  // Run on CPU
-
-  // Compare
-  OCL_MAP_BUFFER(1);
-  for (int32_t i = 0; i < (int32_t) n; ++i) {
-    //printf("%d %d\n", i, ((int *)buf_data[1])[i]);
-    if (i % 2 == 1) {
-      if (i < (int32_t)locals[0])
-        OCL_ASSERT(((int *)buf_data[1])[i] == 1);
-      else
-        OCL_ASSERT(((int *)buf_data[1])[i] == 2);
-    }
-    else
-      OCL_ASSERT(((int *)buf_data[1])[i] == 3);
-  }
-  OCL_UNMAP_BUFFER(1);
-}
-
-MAKE_UTEST_FROM_FUNCTION(compiler_sub_group_all);
diff --git a/utests/compiler_sub_group_any.cpp b/utests/compiler_sub_group_any.cpp
deleted file mode 100644
index 98b1bdd..0000000
--- a/utests/compiler_sub_group_any.cpp
+++ /dev/null
@@ -1,43 +0,0 @@ 
-#include "utest_helper.hpp"
-
-void compiler_sub_group_any(void)
-{
-  const size_t n = 40;
-
-  // Setup kernel and buffers
-  OCL_CREATE_KERNEL("compiler_sub_group_any");
-  OCL_CREATE_BUFFER(buf[0], 0, n * sizeof(int), NULL);
-  OCL_CREATE_BUFFER(buf[1], 0, n * sizeof(int), NULL);
-  OCL_SET_ARG(0, sizeof(cl_mem), &buf[0]);
-  OCL_SET_ARG(1, sizeof(cl_mem), &buf[1]);
-
-  globals[0] = n;
-  locals[0] = 10;
-
-  OCL_MAP_BUFFER(0);
-  for (int32_t i = 0; i < (int32_t) n; ++i)
-    ((int*)buf_data[0])[i] = i;
-  OCL_UNMAP_BUFFER(0);
-
-  // Run the kernel on GPU
-  OCL_NDRANGE(1);
-
-  // Run on CPU
-
-  // Compare
-  OCL_MAP_BUFFER(1);
-  for (int32_t i = 0; i < (int32_t) n; ++i){
-    //printf("%d %d\n", i, ((int *)buf_data[1])[i]);
-    if (i % 2 == 1) {
-      if (i < (int32_t)locals[0])
-        OCL_ASSERT(((int *)buf_data[1])[i] == 1);
-      else
-        OCL_ASSERT(((int *)buf_data[1])[i] == 2);
-    }
-    else
-      OCL_ASSERT(((int *)buf_data[1])[i] == 3);
-  }
-  OCL_UNMAP_BUFFER(1);
-}
-
-MAKE_UTEST_FROM_FUNCTION(compiler_sub_group_any);