Skip to content

Commit 6baf1a3

Browse files
authored
[SYCL][Fusion] Require feature for all fusion tests (intel#12216)
Even fusion end-to-end tests that do not require `complete_fusion` would fail if the tests are executed on a device that supports fusion in principle (e.g., CPU), but the build has fusion disabled. This change simply replaces the `REQUIRES: fusion` in individual test files with the equivalent in the `lit.local.cfg` to require the `fusion` feature for all tests in the directory. Signed-off-by: Lukas Sommer <lukas.sommer@codeplay.com>
1 parent 9138b6f commit 6baf1a3

40 files changed

+3
-39
lines changed

sycl/test-e2e/KernelFusion/abort_fusion.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -fsycl-embed-ir -o %t.out
32
// RUN: env SYCL_RT_WARNING_LEVEL=1 %{run} %t.out 2>&1 | FileCheck %s
43

sycl/test-e2e/KernelFusion/abort_internalization.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -O2 -fsycl-embed-ir -o %t.out
32
// RUN: env SYCL_RT_WARNING_LEVEL=1 SYCL_ENABLE_FUSION_CACHING=0 %{run} %t.out 2>&1 | FileCheck %s
43

sycl/test-e2e/KernelFusion/abort_internalization_stored_ptr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -fsycl-embed-ir -o %t.out
32
// RUN: env SYCL_RT_WARNING_LEVEL=1 %{run} %t.out 2>&1 | FileCheck %s --implicit-check-not "Computation error" --implicit-check-not "Internalized" --check-prefix=CHECK %if hip %{ --check-prefix=CHECK-HIP %} %else %{ --check-prefix=CHECK-NON-HIP %}
43

sycl/test-e2e/KernelFusion/barrier_local_internalization.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -fsycl-embed-ir -O2 -o %t.out
32
// RUN: %{run} %t.out
43

sycl/test-e2e/KernelFusion/buffer_internalization.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -fsycl-embed-ir -O2 -o %t.out
32
// RUN: %{run} %t.out
43

sycl/test-e2e/KernelFusion/cached_ndrange.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -fsycl-embed-ir -O2 -o %t.out
32
// RUN: env SYCL_RT_WARNING_LEVEL=1 %{run} %t.out 2>&1 | FileCheck %s --implicit-check-not "COMPUTATION ERROR"
43
// UNSUPPORTED: hip

sycl/test-e2e/KernelFusion/cancel_fusion.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -fsycl-embed-ir -o %t.out
32
// RUN: %{run} %t.out
43

sycl/test-e2e/KernelFusion/complete_fusion.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -fsycl-embed-ir -o %t.out
32
// RUN: %{run} %t.out
43

sycl/test-e2e/KernelFusion/device_info_descriptor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43

sycl/test-e2e/KernelFusion/diamond_shape.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: fusion
21
// RUN: %{build} -fsycl-embed-ir -O2 -o %t.out
32
// RUN: %{run} %t.out
43

0 commit comments

Comments
 (0)