Skip to content

Commit 5724009

Browse files
author
Steffen Larsen
committed
[SYCL][PI] Fix kernel group info parameter conversion
Signed-off-by: Steffen Larsen <[email protected]>
1 parent dedaaec commit 5724009

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/include/CL/sycl/detail/kernel_info.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct get_kernel_work_group_info {
5959
T Result;
6060
// TODO catch an exception and put it to list of asynchronous exceptions
6161
Plugin.call<PiApiKind::piKernelGetGroupInfo>(
62-
Kernel, Device, cl_kernel_work_group_info(Param), sizeof(T), &Result,
62+
Kernel, Device, pi::cast<pi_kernel_group_info>(Param), sizeof(T), &Result,
6363
nullptr);
6464
return Result;
6565
}
@@ -72,8 +72,8 @@ struct get_kernel_work_group_info<cl::sycl::range<3>, Param> {
7272
size_t Result[3];
7373
// TODO catch an exception and put it to list of asynchronous exceptions
7474
Plugin.call<PiApiKind::piKernelGetGroupInfo>(
75-
Kernel, Device, cl_kernel_work_group_info(Param), sizeof(size_t) * 3,
76-
Result, nullptr);
75+
Kernel, Device, pi::cast<pi_kernel_group_info>(Param),
76+
sizeof(size_t) * 3, Result, nullptr);
7777
return cl::sycl::range<3>(Result[0], Result[1], Result[2]);
7878
}
7979
};

0 commit comments

Comments
 (0)