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

[ESIMD] Fix the test verifying printf with ESIMD kernel #1090

Merged
merged 1 commit into from
Jul 13, 2022
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
4 changes: 2 additions & 2 deletions SYCL/ESIMD/printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int main() {
esimd_test::createExceptionHandler());

Queue.submit([&](handler &CGH) {
CGH.single_task<class integral>([=]() {
CGH.single_task([=]() SYCL_ESIMD_KERNEL {
// String
oneapi::experimental::printf(format_hello_world);
// Due to a bug in Intel CPU Runtime for OpenCL on Windows, information
Expand Down Expand Up @@ -97,7 +97,7 @@ int main() {
esimd_test::createExceptionHandler());
// printf in parallel_for
Queue.submit([&](handler &CGH) {
CGH.parallel_for<class stream_string>(range<1>(10), [=](id<1> i) {
CGH.parallel_for(range<1>(10), [=](id<1> i) SYCL_ESIMD_KERNEL {
// cast to uint64_t to be sure that we pass 64-bit unsigned value
oneapi::experimental::printf(format_hello_world_2, (uint64_t)i.get(0));
});
Expand Down