File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 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) {
You can’t perform that action at this time.
0 commit comments