[Beignet] [PATCH V2 2/2] Utest: Remove some unsuport work group tests
Xiuli Pan
xiuli.pan at intel.com
Mon May 16 02:04:59 UTC 2016
From: Pan Xiuli <xiuli.pan at intel.com>
HSW and IVB does not support long type, now hide these tests.
V2: Remove some unsupport kernel.
Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
kernels/compiler_workgroup_broadcast.cl | 11 ++++++-----
utests/compiler_workgroup_broadcast.cpp | 6 +++---
utests/compiler_workgroup_reduce.cpp | 12 ++++++------
utests/compiler_workgroup_scan_exclusive.cpp | 12 ++++++------
utests/compiler_workgroup_scan_inclusive.cpp | 12 ++++++------
5 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/kernels/compiler_workgroup_broadcast.cl b/kernels/compiler_workgroup_broadcast.cl
index 47ff0b7..118cc9e 100644
--- a/kernels/compiler_workgroup_broadcast.cl
+++ b/kernels/compiler_workgroup_broadcast.cl
@@ -16,7 +16,7 @@ kernel void compiler_workgroup_broadcast_1D_int(global int *src,
wg_local_x);
dst[index] = broadcast_val;
}
-
+#if 0
kernel void compiler_workgroup_broadcast_1D_long(global long *src,
global long *dst,
uint wg_local_x,
@@ -31,7 +31,7 @@ kernel void compiler_workgroup_broadcast_1D_long(global long *src,
wg_local_x);
dst[index] = broadcast_val;
}
-
+#endif
/*
* Workgroup broadcast 2D functions
*/
@@ -53,7 +53,7 @@ kernel void compiler_workgroup_broadcast_2D_int(global int *src,
wg_local_y);
dst[index] = broadcast_val;
}
-
+#if 0
kernel void compiler_workgroup_broadcast_2D_long(global long *src,
global long *dst,
uint wg_local_x,
@@ -72,7 +72,7 @@ kernel void compiler_workgroup_broadcast_2D_long(global long *src,
wg_local_y);
dst[index] = broadcast_val;
}
-
+#endif
/*
* Workgroup broadcast 3D functions
*/
@@ -97,7 +97,7 @@ kernel void compiler_workgroup_broadcast_3D_int(global int *src,
wg_local_z);
dst[index] = broadcast_val;
}
-
+#if 0
kernel void compiler_workgroup_broadcast_3D_long(global long *src,
global long *dst,
uint wg_local_x,
@@ -119,3 +119,4 @@ kernel void compiler_workgroup_broadcast_3D_long(global long *src,
wg_local_z);
dst[index] = broadcast_val;
}
+#endif
diff --git a/utests/compiler_workgroup_broadcast.cpp b/utests/compiler_workgroup_broadcast.cpp
index b57b859..fd2228c 100644
--- a/utests/compiler_workgroup_broadcast.cpp
+++ b/utests/compiler_workgroup_broadcast.cpp
@@ -258,7 +258,7 @@ void compiler_workgroup_broadcast_1D_long(void)
"compiler_workgroup_broadcast_1D_long");
workgroup_generic(WG_BROADCAST_1D, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_broadcast_1D_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_broadcast_1D_long);
/*
* Workgroup broadcast 2D functions
@@ -281,7 +281,7 @@ void compiler_workgroup_broadcast_2D_long(void)
"compiler_workgroup_broadcast_2D_long");
workgroup_generic(WG_BROADCAST_2D, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_broadcast_2D_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_broadcast_2D_long);
/*
@@ -305,4 +305,4 @@ void compiler_workgroup_broadcast_3D_long(void)
"compiler_workgroup_broadcast_3D_long");
workgroup_generic(WG_BROADCAST_3D, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_broadcast_3D_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_broadcast_3D_long);
diff --git a/utests/compiler_workgroup_reduce.cpp b/utests/compiler_workgroup_reduce.cpp
index 4003bf8..2b5d176 100644
--- a/utests/compiler_workgroup_reduce.cpp
+++ b/utests/compiler_workgroup_reduce.cpp
@@ -263,7 +263,7 @@ void compiler_workgroup_reduce_add_long(void)
"compiler_workgroup_reduce_add_long");
workgroup_generic(WG_REDUCE_ADD, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_add_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduce_add_long);
void compiler_workgroup_reduce_add_ulong(void)
{
cl_ulong *input = NULL;
@@ -272,7 +272,7 @@ void compiler_workgroup_reduce_add_ulong(void)
"compiler_workgroup_reduce_add_ulong");
workgroup_generic(WG_REDUCE_ADD, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_add_ulong);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduce_add_ulong);
void compiler_workgroup_reduce_add_float(void)
{
cl_float *input = NULL;
@@ -312,7 +312,7 @@ void compiler_workgroup_reduce_max_long(void)
"compiler_workgroup_reduce_max_long");
workgroup_generic(WG_REDUCE_MAX, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_max_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduce_max_long);
void compiler_workgroup_reduce_max_ulong(void)
{
cl_ulong *input = NULL;
@@ -321,7 +321,7 @@ void compiler_workgroup_reduce_max_ulong(void)
"compiler_workgroup_reduce_max_ulong");
workgroup_generic(WG_REDUCE_MAX, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_max_ulong);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduce_max_ulong);
void compiler_workgroup_reduce_max_float(void)
{
cl_float *input = NULL;
@@ -361,7 +361,7 @@ void compiler_workgroup_reduce_min_long(void)
"compiler_workgroup_reduce_min_long");
workgroup_generic(WG_REDUCE_MIN, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_min_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduce_min_long);
void compiler_workgroup_reduce_min_ulong(void)
{
cl_ulong *input = NULL;
@@ -370,7 +370,7 @@ void compiler_workgroup_reduce_min_ulong(void)
"compiler_workgroup_reduce_min_ulong");
workgroup_generic(WG_REDUCE_MIN, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_min_ulong);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduce_min_ulong);
void compiler_workgroup_reduce_min_float(void)
{
cl_float *input = NULL;
diff --git a/utests/compiler_workgroup_scan_exclusive.cpp b/utests/compiler_workgroup_scan_exclusive.cpp
index 37c38dc..c27a3cb 100644
--- a/utests/compiler_workgroup_scan_exclusive.cpp
+++ b/utests/compiler_workgroup_scan_exclusive.cpp
@@ -223,7 +223,7 @@ void compiler_workgroup_scan_exclusive_add_long(void)
"compiler_workgroup_scan_exclusive_add_long");
workgroup_generic(WG_SCAN_EXCLUSIVE_ADD, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_add_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_exclusive_add_long);
void compiler_workgroup_scan_exclusive_add_ulong(void)
{
cl_ulong *input = NULL;
@@ -232,7 +232,7 @@ void compiler_workgroup_scan_exclusive_add_ulong(void)
"compiler_workgroup_scan_exclusive_add_ulong");
workgroup_generic(WG_SCAN_EXCLUSIVE_ADD, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_add_ulong);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_exclusive_add_ulong);
void compiler_workgroup_scan_exclusive_add_float(void)
{
cl_float *input = NULL;
@@ -272,7 +272,7 @@ void compiler_workgroup_scan_exclusive_max_long(void)
"compiler_workgroup_scan_exclusive_max_long");
workgroup_generic(WG_SCAN_EXCLUSIVE_MAX, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_max_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_exclusive_max_long);
void compiler_workgroup_scan_exclusive_max_ulong(void)
{
cl_ulong *input = NULL;
@@ -281,7 +281,7 @@ void compiler_workgroup_scan_exclusive_max_ulong(void)
"compiler_workgroup_scan_exclusive_max_ulong");
workgroup_generic(WG_SCAN_EXCLUSIVE_MAX, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_max_ulong);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_exclusive_max_ulong);
void compiler_workgroup_scan_exclusive_max_float(void)
{
cl_float *input = NULL;
@@ -321,7 +321,7 @@ void compiler_workgroup_scan_exclusive_min_long(void)
"compiler_workgroup_scan_exclusive_min_long");
workgroup_generic(WG_SCAN_EXCLUSIVE_MIN, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_min_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_exclusive_min_long);
void compiler_workgroup_scan_exclusive_min_ulong(void)
{
cl_ulong *input = NULL;
@@ -330,7 +330,7 @@ void compiler_workgroup_scan_exclusive_min_ulong(void)
"compiler_workgroup_scan_exclusive_min_ulong");
workgroup_generic(WG_SCAN_EXCLUSIVE_MIN, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_min_ulong);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_exclusive_min_ulong);
void compiler_workgroup_scan_exclusive_min_float(void)
{
cl_float *input = NULL;
diff --git a/utests/compiler_workgroup_scan_inclusive.cpp b/utests/compiler_workgroup_scan_inclusive.cpp
index 440416d..afbbc8e 100644
--- a/utests/compiler_workgroup_scan_inclusive.cpp
+++ b/utests/compiler_workgroup_scan_inclusive.cpp
@@ -213,7 +213,7 @@ void compiler_workgroup_scan_inclusive_add_long(void)
"compiler_workgroup_scan_inclusive_add_long");
workgroup_generic(WG_SCAN_INCLUSIVE_ADD, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_add_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_inclusive_add_long);
void compiler_workgroup_scan_inclusive_add_ulong(void)
{
cl_ulong *input = NULL;
@@ -222,7 +222,7 @@ void compiler_workgroup_scan_inclusive_add_ulong(void)
"compiler_workgroup_scan_inclusive_add_ulong");
workgroup_generic(WG_SCAN_INCLUSIVE_ADD, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_add_ulong);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_inclusive_add_ulong);
void compiler_workgroup_scan_inclusive_add_float(void)
{
cl_float *input = NULL;
@@ -262,7 +262,7 @@ void compiler_workgroup_scan_inclusive_max_long(void)
"compiler_workgroup_scan_inclusive_max_long");
workgroup_generic(WG_SCAN_INCLUSIVE_MAX, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_max_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_inclusive_max_long);
void compiler_workgroup_scan_inclusive_max_ulong(void)
{
cl_ulong *input = NULL;
@@ -271,7 +271,7 @@ void compiler_workgroup_scan_inclusive_max_ulong(void)
"compiler_workgroup_scan_inclusive_max_ulong");
workgroup_generic(WG_SCAN_INCLUSIVE_MAX, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_max_ulong);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_inclusive_max_ulong);
void compiler_workgroup_scan_inclusive_max_float(void)
{
cl_float *input = NULL;
@@ -311,7 +311,7 @@ void compiler_workgroup_scan_inclusive_min_long(void)
"compiler_workgroup_scan_inclusive_min_long");
workgroup_generic(WG_SCAN_INCLUSIVE_MIN, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_min_long);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_inclusive_min_long);
void compiler_workgroup_scan_inclusive_min_ulong(void)
{
cl_ulong *input = NULL;
@@ -320,7 +320,7 @@ void compiler_workgroup_scan_inclusive_min_ulong(void)
"compiler_workgroup_scan_inclusive_min_ulong");
workgroup_generic(WG_SCAN_INCLUSIVE_MIN, input, expected);
}
-MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_min_ulong);
+MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_inclusive_min_ulong);
void compiler_workgroup_scan_inclusive_min_float(void)
{
cl_float *input = NULL;
--
2.7.4
More information about the Beignet
mailing list