Skip to content

Commit e856440

Browse files
authored
[SYCL][E2E] Remove REQUIRES: build-and-run-mode from syclcompat and Adapters tests (#16795)
As of #16725 tests can properly react to features that affect compilation on build-only mode (i.e., libraries or OS), additionally we can also mark if a test should only be built for a specific triple using the `target-*` features. This pr removes `REQUIRES: build-and-run-mode` from syclcompat and Adapters tests, and either lets the test be marked as unsupported due to requiring a missing build feature (`windows` or `cuda_dev_kit`), or the test is marked as unsupported for `spir` by requiring `target-nvidia`
1 parent 8324bb2 commit e856440

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

sycl/test-e2e/Adapters/cuda_queue_priority.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: gpu, cuda, cuda_dev_kit
2-
// REQUIRES: build-and-run-mode
32
// RUN: %{build} %cuda_options -o %t.out
43
// RUN: %{run} %t.out
54
//

sycl/test-e2e/Adapters/dll-detach-order.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: windows
2-
// REQUIRES: build-and-run-mode
32
// RUN: env SYCL_UR_TRACE=-1 sycl-ls | FileCheck %s
43

54
// ensure that the adapters are detached AFTER urLoaderTearDown is done

sycl/test-e2e/syclcompat/kernel/kernel_win.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// REQUIRES: windows
2-
// REQUIRES: build-and-run-mode
32

43
// DEFINE: %{sharedflag} = %if cl_options %{/clang:-shared%} %else %{-shared%}
54

sycl/test-e2e/syclcompat/launch/launch_properties.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
* sycl/test-e2e/ClusterLaunch/cluster_launch_parallel_for.cpp
2323
**************************************************************************/
2424

25-
// REQUIRES: aspect-ext_oneapi_cuda_cluster_group
26-
// REQUIRES: build-and-run-mode
25+
// REQUIRES: target-nvidia, aspect-ext_oneapi_cuda_cluster_group
26+
// XFAIL: *
27+
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16794
2728
// RUN: %{build} -Xsycl-target-backend=nvptx64-nvidia-cuda --cuda-gpu-arch=sm_90 -o %t.out
2829
// RUN: %{run} %t.out
2930

sycl/test-e2e/syclcompat/memory/local_memory_ptr_to_integer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// REQUIRES: cuda
2-
// REQUIRES: build-and-run-mode
1+
// REQUIRES: target-nvidia
32
// RUN: %{build} -Xsycl-target-backend --cuda-gpu-arch=sm_75 -o %t.out
43
// RUN: %{run} %t.out
54
#include <sycl/detail/core.hpp>

0 commit comments

Comments
 (0)