Skip to content

[SYCL][NFC] Fix for sporadic failure of queue_parallel_for_generic test #1976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sycl/test/basic_tests/queue/queue_parallel_for_generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
//===------------------------------------------------------------------------===//

#include <CL/sycl.hpp>

#include <cassert>
#include <iostream>
#include <type_traits>

int main() {
sycl::queue q{};
sycl::queue q{sycl::property::queue::in_order()};
auto dev = q.get_device();
auto ctx = q.get_context();
constexpr int N = 8;
Expand Down Expand Up @@ -67,8 +69,7 @@ int main() {
q.wait();

for (int i = 0; i < N; i++) {
if (A[i] != 5)
return 1;
assert(A[i] == 5);
}
sycl::free(A, ctx);
}