[Beignet] [PATCH V3] Utset: Add check for workgroup tests

Yang, Rong R rong.r.yang at intel.com
Wed Aug 3 09:02:02 UTC 2016


Pushed.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Guo, Yejun
> Sent: Wednesday, July 27, 2016 10:27
> To: Pan, Xiuli <xiuli.pan at intel.com>; beignet at lists.freedesktop.org
> Cc: Pan, Xiuli <xiuli.pan at intel.com>
> Subject: Re: [Beignet] [PATCH V3] Utset: Add check for workgroup tests
> 
> looks good to me, thanks.
> 
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Xiuli Pan
> Sent: Wednesday, July 27, 2016 10:11 AM
> To: beignet at lists.freedesktop.org
> Cc: Pan, Xiuli
> Subject: [Beignet] [PATCH V3] Utset: Add check for workgroup tests
> 
> From: Pan Xiuli <xiuli.pan at intel.com>
> 
> Workgroup is also an OpenCL 2.0 feature, add check for these cases.
> V2: Move check before kernel build
> V3: Remove uselees check
> 
> Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
> ---
>  utests/compiler_workgroup_broadcast.cpp      | 12 ++++++++++
>  utests/compiler_workgroup_reduce.cpp         | 34
> ++++++++++++++++++++++++++++
>  utests/compiler_workgroup_scan_exclusive.cpp | 30
> ++++++++++++++++++++++++
> utests/compiler_workgroup_scan_inclusive.cpp | 30
> ++++++++++++++++++++++++
>  4 files changed, 106 insertions(+)
> 
> diff --git a/utests/compiler_workgroup_broadcast.cpp
> b/utests/compiler_workgroup_broadcast.cpp
> index fd2228c..a323fb6 100644
> --- a/utests/compiler_workgroup_broadcast.cpp
> +++ b/utests/compiler_workgroup_broadcast.cpp
> @@ -242,6 +242,8 @@ static void workgroup_generic(WG_BROADCAST
> wg_broadcast,
>   */
>  void compiler_workgroup_broadcast_1D_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_broadcast",
> @@ -252,6 +254,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_broadcast_1D_int);
> 
>  void compiler_workgroup_broadcast_1D_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_broadcast",
> @@ -265,6 +269,8 @@
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_broadc
> ast_1D_long);
>   */
>  void compiler_workgroup_broadcast_2D_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_broadcast",
> @@ -275,6 +281,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_broadcast_2D_int);
> 
>  void compiler_workgroup_broadcast_2D_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_broadcast",
> @@ -289,6 +297,8 @@
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_broadc
> ast_2D_long);
>   */
>  void compiler_workgroup_broadcast_3D_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_broadcast",
> @@ -299,6 +309,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_broadcast_3D_int);
> 
>  void compiler_workgroup_broadcast_3D_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_broadcast",
> diff --git a/utests/compiler_workgroup_reduce.cpp
> b/utests/compiler_workgroup_reduce.cpp
> index 21bcfa2..1cf4b08 100644
> --- a/utests/compiler_workgroup_reduce.cpp
> +++ b/utests/compiler_workgroup_reduce.cpp
> @@ -219,6 +219,8 @@ static void workgroup_generic(WG_FUNCTION
> wg_func,
>   */
>  void compiler_workgroup_any(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -228,6 +230,8 @@ void compiler_workgroup_any(void)
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_any);
>  void compiler_workgroup_all(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -240,6 +244,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_all);
>   */
>  void compiler_workgroup_reduce_add_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -249,6 +255,8 @@ void compiler_workgroup_reduce_add_int(void)
>  MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_add_int);
>  void compiler_workgroup_reduce_add_uint(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_uint *input = NULL;
>    cl_uint *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -258,6 +266,8 @@ void compiler_workgroup_reduce_add_uint(void)
>  MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_add_uint);
>  void compiler_workgroup_reduce_add_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -267,6 +277,8 @@ void compiler_workgroup_reduce_add_long(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduc
> e_add_long);
>  void compiler_workgroup_reduce_add_ulong(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_ulong *input = NULL;
>    cl_ulong *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -276,6 +288,8 @@ void compiler_workgroup_reduce_add_ulong(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduc
> e_add_ulong);
>  void compiler_workgroup_reduce_add_float(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_float *input = NULL;
>    cl_float *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -289,6 +303,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_add_float);
>   */
>  void compiler_workgroup_reduce_max_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -298,6 +314,8 @@ void compiler_workgroup_reduce_max_int(void)
>  MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_max_int);
>  void compiler_workgroup_reduce_max_uint(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_uint *input = NULL;
>    cl_uint *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -307,6 +325,8 @@ void compiler_workgroup_reduce_max_uint(void)
>  MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_max_uint);
>  void compiler_workgroup_reduce_max_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -316,6 +336,8 @@ void compiler_workgroup_reduce_max_long(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduc
> e_max_long);
>  void compiler_workgroup_reduce_max_ulong(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_ulong *input = NULL;
>    cl_ulong *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -325,6 +347,8 @@ void compiler_workgroup_reduce_max_ulong(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduc
> e_max_ulong);
>  void compiler_workgroup_reduce_max_float(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_float *input = NULL;
>    cl_float *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -338,6 +362,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_max_float);
>   */
>  void compiler_workgroup_reduce_min_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -347,6 +373,8 @@ void compiler_workgroup_reduce_min_int(void)
>  MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_min_int);
>  void compiler_workgroup_reduce_min_uint(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_uint *input = NULL;
>    cl_uint *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -356,6 +384,8 @@ void compiler_workgroup_reduce_min_uint(void)
>  MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_reduce_min_uint);
>  void compiler_workgroup_reduce_min_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -365,6 +395,8 @@ void compiler_workgroup_reduce_min_long(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduc
> e_min_long);
>  void compiler_workgroup_reduce_min_ulong(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_ulong *input = NULL;
>    cl_ulong *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> @@ -374,6 +406,8 @@ void compiler_workgroup_reduce_min_ulong(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_reduc
> e_min_ulong);
>  void compiler_workgroup_reduce_min_float(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_float *input = NULL;
>    cl_float *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_reduce",
> diff --git a/utests/compiler_workgroup_scan_exclusive.cpp
> b/utests/compiler_workgroup_scan_exclusive.cpp
> index 022e989..50afdf3 100644
> --- a/utests/compiler_workgroup_scan_exclusive.cpp
> +++ b/utests/compiler_workgroup_scan_exclusive.cpp
> @@ -200,6 +200,8 @@ static void workgroup_generic(WG_FUNCTION
> wg_func,
>   */
>  void compiler_workgroup_scan_exclusive_add_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -209,6 +211,8 @@ void
> compiler_workgroup_scan_exclusive_add_int(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_add
> _int);
>  void compiler_workgroup_scan_exclusive_add_uint(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_uint *input = NULL;
>    cl_uint *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -218,6 +222,8 @@ void
> compiler_workgroup_scan_exclusive_add_uint(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_add
> _uint);
>  void compiler_workgroup_scan_exclusive_add_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -227,6 +233,8 @@ void
> compiler_workgroup_scan_exclusive_add_long(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_
> exclusive_add_long);
>  void compiler_workgroup_scan_exclusive_add_ulong(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_ulong *input = NULL;
>    cl_ulong *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -236,6 +244,8 @@ void
> compiler_workgroup_scan_exclusive_add_ulong(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_
> exclusive_add_ulong);
>  void compiler_workgroup_scan_exclusive_add_float(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_float *input = NULL;
>    cl_float *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -249,6 +259,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_add
> _float);
>   */
>  void compiler_workgroup_scan_exclusive_max_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -258,6 +270,8 @@ void
> compiler_workgroup_scan_exclusive_max_int(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_max
> _int);
>  void compiler_workgroup_scan_exclusive_max_uint(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_uint *input = NULL;
>    cl_uint *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -267,6 +281,8 @@ void
> compiler_workgroup_scan_exclusive_max_uint(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_max
> _uint);
>  void compiler_workgroup_scan_exclusive_max_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -276,6 +292,8 @@ void
> compiler_workgroup_scan_exclusive_max_long(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_
> exclusive_max_long);
>  void compiler_workgroup_scan_exclusive_max_ulong(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_ulong *input = NULL;
>    cl_ulong *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -285,6 +303,8 @@ void
> compiler_workgroup_scan_exclusive_max_ulong(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_
> exclusive_max_ulong);
>  void compiler_workgroup_scan_exclusive_max_float(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_float *input = NULL;
>    cl_float *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -298,6 +318,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_max
> _float);
>   */
>  void compiler_workgroup_scan_exclusive_min_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -307,6 +329,8 @@ void
> compiler_workgroup_scan_exclusive_min_int(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_min
> _int);
>  void compiler_workgroup_scan_exclusive_min_uint(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_uint *input = NULL;
>    cl_uint *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -316,6 +340,8 @@ void
> compiler_workgroup_scan_exclusive_min_uint(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_exclusive_min
> _uint);
>  void compiler_workgroup_scan_exclusive_min_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -325,6 +351,8 @@ void
> compiler_workgroup_scan_exclusive_min_long(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_
> exclusive_min_long);
>  void compiler_workgroup_scan_exclusive_min_ulong(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_ulong *input = NULL;
>    cl_ulong *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> @@ -334,6 +362,8 @@ void
> compiler_workgroup_scan_exclusive_min_ulong(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_
> exclusive_min_ulong);
>  void compiler_workgroup_scan_exclusive_min_float(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_float *input = NULL;
>    cl_float *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_exclusive",
> diff --git a/utests/compiler_workgroup_scan_inclusive.cpp
> b/utests/compiler_workgroup_scan_inclusive.cpp
> index 0f65e21..e203ba2 100644
> --- a/utests/compiler_workgroup_scan_inclusive.cpp
> +++ b/utests/compiler_workgroup_scan_inclusive.cpp
> @@ -190,6 +190,8 @@ static void workgroup_generic(WG_FUNCTION
> wg_func,
>   */
>  void compiler_workgroup_scan_inclusive_add_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -199,6 +201,8 @@ void
> compiler_workgroup_scan_inclusive_add_int(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_add_
> int);
>  void compiler_workgroup_scan_inclusive_add_uint(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_uint *input = NULL;
>    cl_uint *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -208,6 +212,8 @@ void
> compiler_workgroup_scan_inclusive_add_uint(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_add_
> uint);
>  void compiler_workgroup_scan_inclusive_add_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -217,6 +223,8 @@ void
> compiler_workgroup_scan_inclusive_add_long(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_i
> nclusive_add_long);
>  void compiler_workgroup_scan_inclusive_add_ulong(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_ulong *input = NULL;
>    cl_ulong *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -226,6 +234,8 @@ void
> compiler_workgroup_scan_inclusive_add_ulong(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_i
> nclusive_add_ulong);
>  void compiler_workgroup_scan_inclusive_add_float(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_float *input = NULL;
>    cl_float *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -239,6 +249,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_add_
> float);
>   */
>  void compiler_workgroup_scan_inclusive_max_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -248,6 +260,8 @@ void
> compiler_workgroup_scan_inclusive_max_int(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_max
> _int);
>  void compiler_workgroup_scan_inclusive_max_uint(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_uint *input = NULL;
>    cl_uint *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -257,6 +271,8 @@ void
> compiler_workgroup_scan_inclusive_max_uint(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_max
> _uint);
>  void compiler_workgroup_scan_inclusive_max_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -266,6 +282,8 @@ void
> compiler_workgroup_scan_inclusive_max_long(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_i
> nclusive_max_long);
>  void compiler_workgroup_scan_inclusive_max_ulong(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_ulong *input = NULL;
>    cl_ulong *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -275,6 +293,8 @@ void
> compiler_workgroup_scan_inclusive_max_ulong(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_i
> nclusive_max_ulong);
>  void compiler_workgroup_scan_inclusive_max_float(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_float *input = NULL;
>    cl_float *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -288,6 +308,8 @@
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_max
> _float);
>   */
>  void compiler_workgroup_scan_inclusive_min_int(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_int *input = NULL;
>    cl_int *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -297,6 +319,8 @@ void
> compiler_workgroup_scan_inclusive_min_int(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_min_
> int);
>  void compiler_workgroup_scan_inclusive_min_uint(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_uint *input = NULL;
>    cl_uint *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -306,6 +330,8 @@ void
> compiler_workgroup_scan_inclusive_min_uint(void)
> 
> MAKE_UTEST_FROM_FUNCTION(compiler_workgroup_scan_inclusive_min_
> uint);
>  void compiler_workgroup_scan_inclusive_min_long(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_long *input = NULL;
>    cl_long *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -315,6 +341,8 @@ void
> compiler_workgroup_scan_inclusive_min_long(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_i
> nclusive_min_long);
>  void compiler_workgroup_scan_inclusive_min_ulong(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_ulong *input = NULL;
>    cl_ulong *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> @@ -324,6 +352,8 @@ void
> compiler_workgroup_scan_inclusive_min_ulong(void)
> 
> MAKE_UTEST_FROM_FUNCTION_WITH_ISSUE(compiler_workgroup_scan_i
> nclusive_min_ulong);
>  void compiler_workgroup_scan_inclusive_min_float(void)
>  {
> +  if (!cl_check_ocl20())
> +    return;
>    cl_float *input = NULL;
>    cl_float *expected = NULL;
>    OCL_CREATE_KERNEL_FROM_FILE("compiler_workgroup_scan_inclusive",
> --
> 2.5.0
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list