Skip to content

Commit 420de59

Browse files
committed
Fix handler::single_task
1 parent bf20d9a commit 420de59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/include/sycl/handler.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,8 @@ class __SYCL_EXPORT handler {
503503
void setDeviceKernelInfo(kernel &&Kernel) {
504504
MKernel = detail::getSyclObjImpl(std::move(Kernel));
505505
MKernelName = getKernelName();
506+
setDeviceKernelInfoPtr(&detail::getDeviceKernelInfo(
507+
detail::CompileTimeKernelInfoTy{getKernelName()}));
506508
setType(detail::CGType::Kernel);
507509

508510
// If any extra actions are added here make sure that logic around

0 commit comments

Comments
 (0)