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

Commit ff3c507

Browse files
authored
[ESIMD] Fix the test verifying printf with ESIMD kernel (#1090)
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 032f4a1 commit ff3c507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SYCL/ESIMD/printf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int main() {
5353
esimd_test::createExceptionHandler());
5454

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

0 commit comments

Comments
 (0)