Skip to content

Commit 74f82de

Browse files
authored
[SYCL][ESIMD][E2E] Add driver requirement to rsqrt tests (#15786)
We need a newer driver for the PVC version of the tests. Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent c6001ee commit 74f82de

File tree

7 files changed

+73
-0
lines changed

7 files changed

+73
-0
lines changed

sycl/test-e2e/ESIMD/ext_math.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out
1111
// RUN: %{run} %t.out
1212

13+
// UNSUPPORTED: arch-intel_gpu_pvc
14+
1315
// This test checks extended math operations. Combinations of
1416
// - argument type - half, float
1517
// - math function - sin, cos, ..., div_ieee, pow

sycl/test-e2e/ESIMD/ext_math_fast.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// RUN: %{build} -fsycl-device-code-split=per_kernel -ffast-math %{slpflags} -o %t.out
1010
// RUN: %{run} %t.out
1111

12+
// UNSUPPORTED: arch-intel_gpu_pvc
13+
1214
// This test checks extended math operations. Combinations of
1315
// - argument type - half, float
1416
// - math function - sin, cos, ..., div_ieee, pow
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//==----------- ext_math_fast.cpp - DPC++ ESIMD extended math test --------==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
// REQUIRES-INTEL-DRIVER: lin: 31294
9+
// DEFINE: %{slpflags} = %if cl_options %{/clang:-fno-slp-vectorize%} %else %{-fno-slp-vectorize%}
10+
// RUN: %{build} -fsycl-device-code-split=per_kernel -ffast-math %{slpflags} -o %t.out
11+
// RUN: %{run} %t.out
12+
13+
// REQUIRES: arch-intel_gpu_pvc
14+
15+
// This test checks extended math operations. Combinations of
16+
// - argument type - half, float
17+
// - math function - sin, cos, ..., div_ieee, pow
18+
// - SYCL vs ESIMD APIs
19+
20+
// This version of the test checks -ffast-math option which may cause code-gen
21+
// of different-precision variants of math functions.
22+
// The option -fno-slp-vectorize prevents vectorization of code in kernel
23+
// operator() to avoid the extra difficulties in results verification.
24+
25+
#include "ext_math_fast.cpp"

sycl/test-e2e/ESIMD/ext_math_ieee_sqrt_div.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: arch-intel_gpu_pvc
9+
// REQUIRES-INTEL-DRIVER: lin: 31294
910

1011
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
1112
// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out

sycl/test-e2e/ESIMD/ext_math_pvc.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//==--- ext_math_pvc.cpp - DPC++ ESIMD extended math test ---==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
// REQUIRES-INTEL-DRIVER: lin: 31294
9+
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
10+
// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out
11+
// RUN: %{run} %t.out
12+
13+
// REQUIRES: arch-intel_gpu_pvc
14+
15+
// This test checks extended math operations. Combinations of
16+
// - argument type - half, float
17+
// - math function - sin, cos, ..., div_ieee, pow
18+
// - SYCL vs ESIMD APIs
19+
20+
#include "ext_math.cpp"

sycl/test-e2e/ESIMD/ext_math_saturate.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out
1111
// RUN: %{run} %t.out
1212

13+
// UNSUPPORTED: arch-intel_gpu_pvc
14+
1315
// This test checks extended math operations called with saturation.
1416
// Combinations of
1517
// - argument type - half, float
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//==---- ext_math_saturate_pvc.cpp - DPC++ ESIMD extended math test ----==//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
// REQUIRES-INTEL-DRIVER: lin: 31294
9+
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
10+
// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out
11+
// RUN: %{run} %t.out
12+
13+
// REQUIRES: arch-intel_gpu_pvc
14+
15+
// This test checks extended math operations called with saturation.
16+
// Combinations of
17+
// - argument type - half, float
18+
// - math function - sin, cos, ..., div_ieee, pow
19+
// - SYCL vs ESIMD APIs
20+
21+
#include "ext_math_saturate.cpp"

0 commit comments

Comments
 (0)