Skip to content

Commit 4ee45df

Browse files
authored
[SYCL][E2E] Add REQUIRES: opencl-aot to tests (#19072)
A number of e2e tests use `opencl-aot` raw in their `RUN:` commands, this causes tests to fail when the tool is not present on the `PATH`. This patch adds `REQUIRES: opencl-aot` to avoid those test failures.
1 parent 4a999c4 commit 4ee45df

8 files changed

+8
-0
lines changed

sycl/test-e2e/NonUniformGroups/ballot_group.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %{run} %t.out
33
//
44
// CPU AOT targets host isa, so we compile on the run system instead.
5+
// REQUIRES: opencl-aot
56
// RUN: %if any-device-is-cpu && opencl-aot %{ %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64 -o %t.x86.out %s %}
67
// RUN: %if cpu %{ %{run} %t.x86.out %}
78
//

sycl/test-e2e/NonUniformGroups/ballot_group_algorithms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %{run} %t.out
33
//
44
// CPU AOT targets host isa, so we compile on the run system instead.
5+
// REQUIRES: opencl-aot
56
// RUN: %if any-device-is-cpu && opencl-aot %{ %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64 -o %t.x86.out %s %}
67
// RUN: %if cpu %{ %{run} %t.x86.out %}
78
//

sycl/test-e2e/NonUniformGroups/fixed_size_group.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %{run} %t.out
33
//
44
// CPU AOT targets host isa, so we compile on the run system instead.
5+
// REQUIRES: opencl-aot
56
// RUN: %if any-device-is-cpu && opencl-aot %{ %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64 -o %t.x86.out %s %}
67
// RUN: %if cpu %{ %{run} %t.x86.out %}
78
//

sycl/test-e2e/NonUniformGroups/fixed_size_group_algorithms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %{run} %t.out
33
//
44
// CPU AOT targets host isa, so we compile on the run system instead.
5+
// REQUIRES: opencl-aot
56
// RUN: %if any-device-is-cpu && opencl-aot %{ %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64 -fsycl-device-code-split=per_kernel -o %t.x86.out %s %}
67
// RUN: %if cpu %{ %{run} %t.x86.out %}
78
//

sycl/test-e2e/NonUniformGroups/opportunistic_group.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %{run} %t.out
33
//
44
// CPU AOT targets host isa, so we compile on the run system instead.
5+
// REQUIRES: opencl-aot
56
// RUN: %if any-device-is-cpu && opencl-aot %{ %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64 -o %t.x86.out %s %}
67
// RUN: %if cpu %{ %{run} %t.x86.out %}
78
//

sycl/test-e2e/NonUniformGroups/opportunistic_group_algorithms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %{run} %t.out
33
//
44
// CPU AOT targets host isa, so we compile on the run system instead.
5+
// REQUIRES: opencl-aot
56
// RUN: %if any-device-is-cpu && opencl-aot %{ %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64 -o %t.x86.out %s %}
67
// RUN: %if cpu %{ %{run} %t.x86.out %}
78
//

sycl/test-e2e/NonUniformGroups/tangle_group.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %{run} %t.out
33
//
44
// CPU AOT targets host isa, so we compile on the run system instead.
5+
// REQUIRES: opencl-aot
56
// RUN: %if any-device-is-cpu && opencl-aot %{ %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64 -fno-sycl-early-optimizations -o %t.x86.out %s %}
67
// RUN: %if cpu %{ %{run} %t.x86.out %}
78
//

sycl/test-e2e/NonUniformGroups/tangle_group_algorithms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %{run} %t.out
33
//
44
// CPU AOT targets host isa, so we compile on the run system instead.
5+
// REQUIRES: opencl-aot
56
// RUN: %if any-device-is-cpu && opencl-aot %{ %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64 -fno-sycl-early-optimizations -o %t.x86.out %s %}
67
// RUN: %if cpu %{ %{run} %t.x86.out %}
78
//

0 commit comments

Comments
 (0)