|
15 | 15 | #include <gmock/gmock.h> |
16 | 16 | #include <gtest/gtest.h> |
17 | 17 |
|
18 | | -#include <sycl/sycl.hpp> |
19 | 18 | #include <sycl/ext/oneapi/experimental/graph.hpp> |
| 19 | +#include <sycl/sycl.hpp> |
20 | 20 |
|
21 | 21 | using ::testing::HasSubstr; |
22 | 22 | using namespace sycl; |
@@ -96,7 +96,8 @@ TEST_F(NodeCreation, QueueParallelForWithUserCodeLoc) { |
96 | 96 | sycl::queue Q; |
97 | 97 | try { |
98 | 98 | sycl::buffer<int, 1> buf(sycl::range<1>(1)); |
99 | | - sycl::detail::tls_code_loc_t myLoc({"LOCAL_CODELOC_FILE", "LOCAL_CODELOC_NAME", 1, 1}); |
| 99 | + sycl::detail::tls_code_loc_t myLoc( |
| 100 | + {"LOCAL_CODELOC_FILE", "LOCAL_CODELOC_NAME", 1, 1}); |
100 | 101 | Q.submit( |
101 | 102 | [&](handler &Cgh) { |
102 | 103 | sycl::accessor acc(buf, Cgh, sycl::read_write); |
@@ -148,16 +149,17 @@ TEST_F(NodeCreation, QueueMemsetNode) { |
148 | 149 | TEST_F(NodeCreation, CommandGraphRecord) { |
149 | 150 | sycl::queue Q; |
150 | 151 | try { |
151 | | - sycl::ext::oneapi::experimental::command_graph cmdGraph(Q.get_context(), Q.get_device()); |
| 152 | + sycl::ext::oneapi::experimental::command_graph cmdGraph(Q.get_context(), |
| 153 | + Q.get_device()); |
152 | 154 |
|
153 | 155 | cmdGraph.begin_recording(Q); |
154 | 156 |
|
155 | 157 | { |
156 | | - sycl::detail::tls_code_loc_t myLoc({"LOCAL_CODELOC_FILE", "LOCAL_CODELOC_NAME", 1, 1}); |
157 | | - Q.submit( |
158 | | - [&](handler &Cgh) { |
159 | | - Cgh.parallel_for<TestKernel<KernelSize>>(1, [=](sycl::id<1> idx) {}); |
160 | | - }); |
| 158 | + sycl::detail::tls_code_loc_t myLoc( |
| 159 | + {"LOCAL_CODELOC_FILE", "LOCAL_CODELOC_NAME", 1, 1}); |
| 160 | + Q.submit([&](handler &Cgh) { |
| 161 | + Cgh.parallel_for<TestKernel<KernelSize>>(1, [=](sycl::id<1> idx) {}); |
| 162 | + }); |
161 | 163 | } |
162 | 164 |
|
163 | 165 | cmdGraph.end_recording(Q); |
@@ -188,14 +190,14 @@ TEST_F(NodeCreation, CommandGraphRecord) { |
188 | 190 | TEST_F(NodeCreation, CommandGraphAddAPI) { |
189 | 191 | sycl::queue Q; |
190 | 192 | try { |
191 | | - sycl::ext::oneapi::experimental::command_graph cmdGraph(Q.get_context(), Q.get_device()); |
| 193 | + sycl::ext::oneapi::experimental::command_graph cmdGraph(Q.get_context(), |
| 194 | + Q.get_device()); |
192 | 195 |
|
193 | 196 | auto doAddNode = [&](const sycl::detail::code_location &loc) { |
194 | 197 | sycl::detail::tls_code_loc_t codeLoc(loc); |
195 | | - return cmdGraph.add( |
196 | | - [&](handler &Cgh) { |
197 | | - Cgh.parallel_for<TestKernel<KernelSize>>(1, [=](sycl::id<1> idx) {}); |
198 | | - }); |
| 198 | + return cmdGraph.add([&](handler &Cgh) { |
| 199 | + Cgh.parallel_for<TestKernel<KernelSize>>(1, [=](sycl::id<1> idx) {}); |
| 200 | + }); |
199 | 201 | }; |
200 | 202 |
|
201 | 203 | auto node1 = doAddNode({"LOCAL_CODELOC_FILE", "LOCAL_NODE_1", 1, 1}); |
|
0 commit comments