Skip to content

Commit 29044ff

Browse files
authored
[SYCL][E2E] Use target features in unsupported statements for DeviceLib tests (#16846)
These tests fail to build for these triples so they should be marked with unsupported for the target feature rather than the backend.
1 parent 00811c1 commit 29044ff

20 files changed

+20
-20
lines changed

sycl/test-e2e/DeviceLib/built-ins/printf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// UNSUPPORTED: hip
1+
// UNSUPPORTED: target-amd
22
// HIP doesn't support printf.
33
// CUDA doesn't support vector format specifiers ("%v").
44
//

sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: aspect-fp64
2-
// UNSUPPORTED: hip || cuda
2+
// UNSUPPORTED: target-amd || target-nvidia
33

44
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
55

sycl/test-e2e/DeviceLib/exp/exp-std-complex-double-edge-cases.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// in SYCL kernels.
33
//
44
// REQUIRES: aspect-fp64
5-
// UNSUPPORTED: hip || cuda
5+
// UNSUPPORTED: target-amd || target-nvidia
66
// UNSUPPORTED-INTENDED: This test is intended for backends with SPIR-V support.
77
//
88
// RUN: %{build} -o %t.out

sycl/test-e2e/DeviceLib/exp/exp-std-complex-float-edge-cases.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This test checks edge cases handling for std::exp(std::complex<float>) used
22
// in SYCL kernels.
33
//
4-
// UNSUPPORTED: hip || cuda
4+
// UNSUPPORTED: target-amd || target-nvidia
55
// UNSUPPORTED-INTENDED: This test is intended for backends with SPIR-V support.
66
//
77
// RUN: %{build} -o %t.out

sycl/test-e2e/DeviceLib/imf_bfloat16_integeral_convesions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
55
// RUN: %{run} %t2.out
66
//
7-
// UNSUPPORTED: cuda || hip
7+
// UNSUPPORTED: target-nvidia || target-amd
88

99
// Windows doesn't yet have full shutdown().
1010
// UNSUPPORTED: ze_debug && windows

sycl/test-e2e/DeviceLib/imf_double2bfloat16.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t1.out
77
// RUN: %{run} %t1.out
88
//
9-
// UNSUPPORTED: cuda || hip
9+
// UNSUPPORTED: target-nvidia || target-amd
1010

1111
#include "imf_utils.hpp"
1212
#include <sycl/ext/intel/math.hpp>

sycl/test-e2e/DeviceLib/imf_double2half.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
88
// RUN: %{run} %t2.out
99

10-
// UNSUPPORTED: cuda, hip
10+
// UNSUPPORTED: target-nvidia, target-amd
1111

1212
#include "imf_utils.hpp"
1313
#include <sycl/ext/intel/math.hpp>

sycl/test-e2e/DeviceLib/imf_float2bfloat16.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
55
// RUN: %{run} %t2.out
66
//
7-
// UNSUPPORTED: cuda || hip
7+
// UNSUPPORTED: target-nvidia || target-amd
88

99
// All __imf_* bf16 functions are implemented via fp32 emulation, so we don't
1010
// need to check whether underlying device supports bf16 or not.

sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl %t1.o %t2.o -o %t.out
99
// RUN: %{run} %t.out
1010

11-
// UNSUPPORTED: cuda, hip
11+
// UNSUPPORTED: target-nvidia, target-amd
1212

1313
// Windows doesn't yet have full shutdown().
1414
// UNSUPPORTED: ze_debug && windows

sycl/test-e2e/DeviceLib/imf_fp32_rounding_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
55
// RUN: %{run} %t2.out
66
//
7-
// UNSUPPORTED: cuda || hip
7+
// UNSUPPORTED: target-nvidia || target-amd
88

99
#include "imf_utils.hpp"
1010
#include <sycl/ext/intel/math.hpp>

0 commit comments

Comments
 (0)