We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 512d8cb commit 83a6d12Copy full SHA for 83a6d12
sycl/test-e2e/Basic/empty_command.cpp
@@ -4,9 +4,11 @@
4
#include <sycl/detail/core.hpp>
5
#include <sycl/usm.hpp>
6
7
+#include <chrono>
8
#include <latch>
9
#include <thread>
10
11
+using namespace std::chrono_literals;
12
using namespace sycl;
13
14
void test_host_task_dep() {
@@ -50,6 +52,10 @@ void test_device_event_dep() {
50
52
start_execution.count_down();
51
53
54
empty_cg_event.wait();
55
+ std::cout << "p = " << *p << std::endl;
56
+ std::this_thread::sleep_for(200ms);
57
+ std::cout << "p2 = " << *p << std::endl;
58
+
59
assert(*p == 42);
60
61
sycl::free(p, q);
0 commit comments