Skip to content

Commit b8a2ab7

Browse files
authored
[SYCL][E2E] Use target- requirements in tests that fail to build for all triples (#16895)
These tests fail building for all triples, so this pr adds `target-` requirements to avoid compiling for those triples while in `build-only`. Previously when in `full` testing mode these tests were either marked as unsupported for the backend corresponding to a given triple, or required a feature that implicitly made some triples unsupported (i.e., `accelerator`, or `sg-8`).
1 parent 4ca4115 commit b8a2ab7

32 files changed

+45
-29
lines changed

sycl/test-e2e/Basic/fpga_tests/fpga_pipes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: accelerator
1+
// REQUIRES: target-spir, accelerator
22
// https://github.com/intel/llvm/issues/14308
33
// Temporarily re-enabled for testing purposes.
44
// If you are facing issues with this test, please leave a comment in:

sycl/test-e2e/Basic/fpga_tests/fpga_pipes_legacy_ns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: accelerator
1+
// REQUIRES: target-spir, accelerator
22
// RUN: %{build} -o %t.out
33
// RUN: %{run} %t.out
44
//==-------- fpga_pipes_legacy_ns.cpp - SYCL FPGA pipes test ---------------==//

sycl/test-e2e/Basic/fpga_tests/fpga_pipes_mixed_usage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
// REQUIRES: accelerator
8+
// REQUIRES: target-spir, accelerator
99
// RUN: %{build} -o %t.out
1010
// RUN: %{run} %t.out
1111

sycl/test-e2e/Basic/multisource_spv_obj.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// UNSUPPORTED: cuda || hip
9+
// UNSUPPORTED: target-nvidia || target-amd
1010
//
1111
// Separate kernel sources and host code sources
1212
// RUN: %{build} -fsycl-device-obj=spirv -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL

sycl/test-e2e/Basic/stream/blocking_pipes_and_stream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: accelerator
1+
// REQUIRES: target-spir, accelerator
22

33
// RUN: %{build} -o %t.out
44
// RUN: %{run} %t.out | FileCheck %s

sycl/test-e2e/ClusterLaunch/cluster_launch_enqueue_functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Tests whether or not cluster launch was successful, with the correct ranges
22
// that were passed via enqueue functions extension
3-
// REQUIRES: aspect-ext_oneapi_cuda_cluster_group
3+
// REQUIRES: target-nvidia, aspect-ext_oneapi_cuda_cluster_group
44
// RUN: %{build} -Xsycl-target-backend --cuda-gpu-arch=sm_90 -o %t.out
55
// RUN: %{run} %t.out
66

sycl/test-e2e/ClusterLaunch/cluster_launch_parallel_for.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Tests whether or not cluster launch was successful, with the correct ranges
22
// that were passed via parallel for overload
3-
// REQUIRES: aspect-ext_oneapi_cuda_cluster_group
3+
// REQUIRES: target-nvidia, aspect-ext_oneapi_cuda_cluster_group
44
// RUN: %{build} -Xsycl-target-backend --cuda-gpu-arch=sm_90 -o %t.out
55
// RUN: %{run} %t.out
66

sycl/test-e2e/ClusterLaunch/enqueueLaunchCustom_check_event_deps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Checks whether or not event Dependencies are honored by
22
// urEnqueueKernelLaunchCustomExp
3-
// REQUIRES: aspect-ext_oneapi_cuda_cluster_group
3+
// REQUIRES: target-nvidia, aspect-ext_oneapi_cuda_cluster_group
44
// RUN: %{build} -Xsycl-target-backend --cuda-gpu-arch=sm_90 -o %t.out
55
// RUN: %{run} %t.out
66

sycl/test-e2e/DeviceImageDependencies/NewOffloadDriver/dynamic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Test -fsycl-allow-device-image-dependencies with dynamic libraries.
22

3-
// UNSUPPORTED: cuda || hip
3+
// UNSUPPORTED: target-nvidia || target-amd
44
// UNSUPPORTED-INTENDED: Not implemented yet for Nvidia/AMD backends.
55

66
// DEFINE: %{dynamic_lib_options} = -fsycl %fPIC %shared_lib -fsycl-allow-device-image-dependencies -I %S/Inputs %if windows %{-DMAKE_DLL %}

sycl/test-e2e/DeviceImageDependencies/NewOffloadDriver/free_function_kernels.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// RUN: %{run} %t.out
66

77
// The name mangling for free function kernels currently does not work with PTX.
8-
// UNSUPPORTED: cuda
8+
// UNSUPPORTED: target-nvidia
99
// UNSUPPORTED-INTENDED: Not implemented yet for Nvidia/AMD backends.
1010

11-
// XFAIL: hip
11+
// XFAIL: target-amd
1212
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/15742
1313

1414
// XFAIL: spirv-backend && run-mode

0 commit comments

Comments
 (0)