Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL][E2E] Use target features in unsupported statements for DeviceLib tests #16846

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/built-ins/printf.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: hip
// UNSUPPORTED: target-amd
// HIP doesn't support printf.
// CUDA doesn't support vector format specifiers ("%v").
//
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: aspect-fp64
// UNSUPPORTED: hip || cuda
// UNSUPPORTED: target-amd || target-nvidia

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// in SYCL kernels.
//
// REQUIRES: aspect-fp64
// UNSUPPORTED: hip || cuda
// UNSUPPORTED: target-amd || target-nvidia
// UNSUPPORTED-INTENDED: This test is intended for backends with SPIR-V support.
//
// RUN: %{build} -o %t.out
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This test checks edge cases handling for std::exp(std::complex<float>) used
// in SYCL kernels.
//
// UNSUPPORTED: hip || cuda
// UNSUPPORTED: target-amd || target-nvidia
// UNSUPPORTED-INTENDED: This test is intended for backends with SPIR-V support.
//
// RUN: %{build} -o %t.out
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out
//
// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd

// Windows doesn't yet have full shutdown().
// UNSUPPORTED: ze_debug && windows
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_double2bfloat16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t1.out
// RUN: %{run} %t1.out
//
// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd

#include "imf_utils.hpp"
#include <sycl/ext/intel/math.hpp>
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_double2half.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out

// UNSUPPORTED: cuda, hip
// UNSUPPORTED: target-nvidia, target-amd

#include "imf_utils.hpp"
#include <sycl/ext/intel/math.hpp>
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_float2bfloat16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out
//
// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd

// All __imf_* bf16 functions are implemented via fp32 emulation, so we don't
// need to check whether underlying device supports bf16 or not.
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl %t1.o %t2.o -o %t.out
// RUN: %{run} %t.out

// UNSUPPORTED: cuda, hip
// UNSUPPORTED: target-nvidia, target-amd

// Windows doesn't yet have full shutdown().
// UNSUPPORTED: ze_debug && windows
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_fp32_rounding_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out
//
// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd

#include "imf_utils.hpp"
#include <sycl/ext/intel/math.hpp>
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_fp32_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out
//
// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd

// Windows doesn't yet have full shutdown().
// UNSUPPORTED: ze_debug && windows
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_fp64_rounding_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out
//
// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd

// Depends on SPIR-V Backend & run-time drivers version.
// XFAIL: spirv-backend
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_fp64_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out
//
// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd
#include "imf_utils.hpp"
#include <sycl/ext/intel/math.hpp>

Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_fp64_test2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out
//
// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd

#include "imf_utils.hpp"
#include <sycl/ext/intel/math.hpp>
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_half_type_cast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out

// UNSUPPORTED: cuda, hip
// UNSUPPORTED: target-nvidia, target-amd

// Windows doesn't yet have full shutdown().
// UNSUPPORTED: ze_debug && windows
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/imf_simd_emulate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
// RUN: %{run} %t2.out
//
// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd

// XFAIL: spirv-backend
// XFAIL-TRACKER: https://github.com/llvm/llvm-project/issues/122075
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/rand_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

// UNSUPPORTED: cuda || hip
// UNSUPPORTED: target-nvidia || target-amd

#include <sycl/builtins.hpp>
#include <sycl/detail/core.hpp>
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/separate_compile_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
// UNSUPPORTED: hip || cuda
// UNSUPPORTED: target-amd || target-nvidia
// RUN: %clangxx -fsycl -fsycl-link %S/std_complex_math_test.cpp -o %t_device.o %{mathflags}
// RUN: %clangxx -fsycl-device-only -Xclang -fsycl-int-header=std_complex_math_test_ihdr.h %S/std_complex_math_test.cpp -Wno-sycl-strict %{mathflags}
// >> host compilation...
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/std_complex_math_fp64_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: aspect-fp64
// UNSUPPORTED: hip || cuda
// UNSUPPORTED: target-amd || target-nvidia
// RUN: %{build} -o %t1.out
// RUN: %{run} %t1.out

Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/std_complex_math_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
// UNSUPPORTED: hip || cuda
// UNSUPPORTED: target-amd || target-nvidia
// RUN: %{build} %{mathflags} -o %t1.out
// RUN: %{run} %t1.out

Expand Down
Loading