File tree Expand file tree Collapse file tree 6 files changed +13
-7
lines changed Expand file tree Collapse file tree 6 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,17 @@ int main() {
36
36
assert (arr[i] == 0 );
37
37
}
38
38
39
- q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (executable_graph); });
39
+ q.submit ([&](sycl::handler &h) {
40
+ h.ext_oneapi_graph (executable_graph);
41
+ }).wait ();
40
42
41
43
for (int i = 0 ; i < n; i++) {
42
44
assert (arr[i] == 1 );
43
45
}
44
46
45
- q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (executable_graph); });
47
+ q.submit ([&](sycl::handler &h) {
48
+ h.ext_oneapi_graph (executable_graph);
49
+ }).wait ();
46
50
47
51
for (int i = 0 ; i < n; i++)
48
52
assert (arr[i] == 2 );
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ int main() {
37
37
assert (arr[i] == 0 );
38
38
}
39
39
40
- q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (executable_graph); });
40
+ q.submit ([&](sycl::handler &h) {
41
+ h.ext_oneapi_graph (executable_graph);
42
+ }).wait ();
41
43
42
44
for (int i = 0 ; i < n; i++)
43
45
assert (arr[i] == 1 );
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ int main() {
102
102
103
103
auto exec_graph = g.finalize (q.get_context ());
104
104
105
- q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (exec_graph); });
105
+ q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (exec_graph); }). wait () ;
106
106
}
107
107
108
108
assert (dotpData == host_gold_result ());
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ int main() {
86
86
87
87
auto exec_graph = g.finalize (q.get_context ());
88
88
89
- q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (exec_graph); });
89
+ q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (exec_graph); }). wait () ;
90
90
91
91
assert (dotp[0 ] == host_gold_result ());
92
92
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ int main() {
33
33
34
34
auto exec_graph = g.finalize (q.get_context ());
35
35
36
- q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (exec_graph); });
36
+ q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (exec_graph); }). wait () ;
37
37
38
38
// Verify results
39
39
for (size_t i = 0 ; i < n; i++) {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ int main() {
36
36
37
37
auto exec_graph = g.finalize (q.get_context ());
38
38
39
- q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (exec_graph); });
39
+ q.submit ([&](sycl::handler &h) { h.ext_oneapi_graph (exec_graph); }). wait () ;
40
40
41
41
// Verify results
42
42
for (size_t i = 0 ; i < n; i++) {
You can’t perform that action at this time.
0 commit comments