Skip to content

Commit 83a6d12

Browse files
test
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 512d8cb commit 83a6d12

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sycl/test-e2e/Basic/empty_command.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
#include <sycl/detail/core.hpp>
55
#include <sycl/usm.hpp>
66

7+
#include <chrono>
78
#include <latch>
89
#include <thread>
910

11+
using namespace std::chrono_literals;
1012
using namespace sycl;
1113

1214
void test_host_task_dep() {
@@ -50,6 +52,10 @@ void test_device_event_dep() {
5052
start_execution.count_down();
5153

5254
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+
5359
assert(*p == 42);
5460

5561
sycl::free(p, q);

0 commit comments

Comments
 (0)