Skip to content

Commit 6baf1a3

Browse files
authored
[SYCL][Fusion] Require feature for all fusion tests (#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 <[email protected]>
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

sycl/test-e2e/KernelFusion/diamond_shape_local.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/different_nd_ranges.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: env SYCL_RT_WARNING_LEVEL=1 %{run} %t.out 2>&1 | FileCheck %s
43

sycl/test-e2e/KernelFusion/event_wait_cancel.cpp

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

sycl/test-e2e/KernelFusion/event_wait_complete.cpp

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

sycl/test-e2e/KernelFusion/existing_local_accessor.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/internal_explicit_dependency.cpp

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

sycl/test-e2e/KernelFusion/internalize_array_wrapper.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/internalize_array_wrapper_local.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/internalize_deep.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/internalize_multi_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 -O2 -o %t.out
32
// RUN: %{run} %t.out
43

sycl/test-e2e/KernelFusion/internalize_vec.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/internalize_vfunc.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/jit_caching.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" --implicit-check-not "WRONG INTERNALIZATION"
43

sycl/test-e2e/KernelFusion/jit_caching_multispirv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: fusion, gpu, (opencl || level_zero)
1+
// REQUIRES: gpu, (opencl || level_zero)
22
// RUN: %{build} -O2 -o %t.out
33
// RUN: env SYCL_RT_WARNING_LEVEL=1 %{run-unfiltered-devices} %t.out 2>&1 | FileCheck %s --implicit-check-not "WRONG a VALUE" --implicit-check-not "WRONG b VALUE"
44

sycl/test-e2e/KernelFusion/jit_caching_multitarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: fusion, gpu, (hip || cuda)
1+
// REQUIRES: gpu, (hip || cuda)
22
// RUN: %{build} -fsycl-embed-ir -O2 -o %t.out
33
// RUN: env SYCL_RT_WARNING_LEVEL=1 %{run-unfiltered-devices} %t.out 2>&1 | FileCheck %s --implicit-check-not "WRONG a VALUE" --implicit-check-not "WRONG b VALUE"
44
// XFAIL: *

sycl/test-e2e/KernelFusion/lit.local.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import platform
22

3+
config.required_features += ['fusion']
34
config.unsupported_features += ['accelerator']
45

56
# TODO: enable on Windows once kernel fusion is supported on Windows.

sycl/test-e2e/KernelFusion/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/math_function.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/non_unit_local_size.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/pointer_arg_function.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
// This test currently fails because InferAddressSpace is not able to remove all

sycl/test-e2e/KernelFusion/private_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/ranged_offset_accessor.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/struct_with_array.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/sync_two_queues_event_dep.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// For this test, complete_fusion must be supported.
2-
// REQUIRES: fusion
32
// RUN: %{build} -o %t.out
43
// RUN: env SYCL_RT_WARNING_LEVEL=1 %{run} %t.out 2>&1 | FileCheck %s
54

sycl/test-e2e/KernelFusion/sync_two_queues_requirement.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// For this test, complete_fusion must be supported.
2-
// REQUIRES: fusion
32
// RUN: %{build} -fsycl-embed-ir -o %t.out
43
// RUN: env SYCL_RT_WARNING_LEVEL=1 %{run} %t.out 2>&1 | FileCheck %s
54

sycl/test-e2e/KernelFusion/three_dimensional.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/two_dimensional.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/usm_no_dependencies.cpp

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

sycl/test-e2e/KernelFusion/work_group_barrier.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/wrapped_usm.cpp

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

0 commit comments

Comments
 (0)