Skip to content

Commit b22212e

Browse files
committed
fix test
1 parent b58507b commit b22212e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sycl/test-e2e/Basic/multi_context_wait.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
33

4+
#include <sycl/detail/core.hpp>
5+
#include <sycl/usm.hpp>
6+
47
#include <iostream>
5-
#include <sycl/sycl.hpp>
68
#include <vector>
79

810
std::vector<sycl::event> submit_dependencies(sycl::queue q1, sycl::queue q2,
@@ -51,6 +53,8 @@ void test_host_task() {
5153
});
5254
});
5355

56+
q2.wait();
57+
5458
sycl::free(mem1, c1);
5559
sycl::free(mem2, c2);
5660
}
@@ -76,6 +80,8 @@ void test_kernel() {
7680
});
7781
});
7882

83+
q2.wait();
84+
7985
sycl::free(mem1, c1);
8086
sycl::free(mem2, c2);
8187
}

0 commit comments

Comments
 (0)