Skip to content

Commit d4221df

Browse files
authored
[SYCL][E2E] dmem_varied.cpp test missing required sync point (#11782)
Test is missing required wait() between initializing ptrs and reading it. This is causing flaky failures.
1 parent a450175 commit d4221df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sycl/test-e2e/USM/dmem_varied.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ int main() {
7979
}
8080

8181
q.submit([&](handler &h) {
82-
h.single_task<class foo1>([=]() {
83-
for (size_t i = 0; i < count; ++i) {
84-
*ptrs[i] = 1;
85-
}
86-
});
87-
});
82+
h.single_task<class foo1>([=]() {
83+
for (size_t i = 0; i < count; ++i) {
84+
*ptrs[i] = 1;
85+
}
86+
});
87+
}).wait();
8888

8989
size_t *res =
9090
(size_t *)aligned_alloc_shared(alignof(size_t), sizeof(size_t), q);

0 commit comments

Comments
 (0)