Skip to content

Commit 106bc89

Browse files
martygrantEwanC
andauthored
[SYCL][Graph] Add new 'are_graphs_supported' helper function (#11877)
Add new 'are_graphs_supported' helper function to determine platform support for Graphs at runtime rather than the lit '// REQUIRES: <platform>' check at compile time. Fixed a bug in the usm_variant tests of trying to instantiate an int with a float value. This PR has been create in order to simplify the PR for adding OpenCL support to the SYCL Graph tests #11718. --------- Co-authored-by: Ewan Crawford <[email protected]>
1 parent 9322d14 commit 106bc89

File tree

173 files changed

+393
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+393
-202
lines changed

sycl/test-e2e/Graph/Explicit/add_node_while_recording.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: cuda || level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG
@@ -14,6 +13,10 @@
1413
int main() {
1514
queue Queue{{sycl::ext::intel::property::queue::no_immediate_command_list{}}};
1615

16+
if (!are_graphs_supported(Queue)) {
17+
return 0;
18+
}
19+
1720
bool Success = false;
1821

1922
exp_ext::command_graph Graph{Queue.get_context(), Queue.get_device()};

sycl/test-e2e/Graph/Explicit/add_nodes_after_finalize.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: cuda || level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG

sycl/test-e2e/Graph/Explicit/assume_buffer_outlives_graph_property.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: cuda || level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG

sycl/test-e2e/Graph/Explicit/basic_buffer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG

sycl/test-e2e/Graph/Explicit/basic_usm.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: cuda || level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG

sycl/test-e2e/Graph/Explicit/basic_usm_host.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: cuda || level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG

sycl/test-e2e/Graph/Explicit/basic_usm_mixed.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: cuda || level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG

sycl/test-e2e/Graph/Explicit/basic_usm_shared.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: cuda || level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG

sycl/test-e2e/Graph/Explicit/basic_usm_system.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: cuda || level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG

sycl/test-e2e/Graph/Explicit/buffer_copy.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: level_zero, gpu
21
// RUN: %{build} -o %t.out
32
// RUN: %{run} %t.out
43
// Extra run to check for leaks in Level Zero using ZE_DEBUG

0 commit comments

Comments
 (0)