Skip to content

Commit e10e6de

Browse files
clang-format and usm include
1 parent a6e672a commit e10e6de

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

sycl/test-e2e/Basic/empty_command.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// RUN: %{run} %t.out
33

44
#include <sycl/detail/core.hpp>
5+
#include <sycl/usm.hpp>
56

67
#include <latch>
78
#include <thread>
@@ -46,11 +47,8 @@ void test_device_event_dep() {
4647
auto *p = sycl::malloc_shared<int>(1, q);
4748
*p = 0;
4849

49-
auto host_event = q.submit([&](handler &cgh) {
50-
cgh.host_task([&]() {
51-
start_execution.wait();
52-
});
53-
});
50+
auto host_event = q.submit(
51+
[&](handler &cgh) { cgh.host_task([&]() { start_execution.wait(); }); });
5452
auto device_event = q.single_task(host_event, [=]() { *p = 42; });
5553
auto empty_cg_event =
5654
q.submit([&](handler &cgh) { cgh.depends_on(device_event); });
@@ -76,11 +74,8 @@ void test_accessor_dep() {
7674
auto *p = sycl::malloc_shared<int>(1, q);
7775
*p = 0;
7876

79-
auto host_event = q.submit([&](handler &cgh) {
80-
cgh.host_task([&]() {
81-
start_execution.wait();
82-
});
83-
});
77+
auto host_event = q.submit(
78+
[&](handler &cgh) { cgh.host_task([&]() { start_execution.wait(); }); });
8479

8580
sycl::buffer<int, 1> b{1};
8681
auto device_event = q.submit([&](auto &cgh) {

0 commit comments

Comments
 (0)