Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Fix printf tests on Level Zero #166

Merged
merged 4 commits into from
Mar 6, 2021
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ static const CONSTANT char format_vec[] = "%d,%d,%d,%d\n";
const CONSTANT char format_hello_world_2[] = "%lu: Hello, World!\n";

int main() {
default_selector Selector;
{
default_selector Selector;
queue Queue(Selector);

Queue.submit([&](handler &CGH) {
Expand Down Expand Up @@ -106,7 +106,10 @@ int main() {
});
});
Queue.wait();
}

{
queue Queue(Selector);
// printf in parallel_for
Queue.submit([&](handler &CGH) {
CGH.parallel_for<class stream_string>(range<1>(10), [=](id<1> i) {
Expand Down