Skip to content
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
7 changes: 7 additions & 0 deletions sycl/include/CL/sycl/handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,13 @@ class __SYCL_EXPORT handler {
// arguments.
MArgs = std::move(MAssociatedAccesors);
}

// If the kernel lambda is callable with a kernel_handler argument, manifest
// the associated kernel handler.
if (detail::isKernelLambdaCallableWithKernelHandler<KernelType,
LambdaArgType>()) {
getOrInsertHandlerKernelBundle(/*Insert=*/true);
}
}

/// Checks whether it is possible to copy the source shape to the destination
Expand Down
13 changes: 4 additions & 9 deletions sycl/source/detail/scheduler/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1754,15 +1754,10 @@ pi_result ExecCGCommand::SetKernelParamsAndLaunch(
"device",
PI_INVALID_OPERATION);
}
if (DeviceImageImpl != nullptr) {
RT::PiMem SpecConstsBuffer =
DeviceImageImpl->get_spec_const_buffer_ref();
Plugin.call<PiApiKind::piextKernelSetArgMemObj>(Kernel, NextTrueIndex,
&SpecConstsBuffer);
} else {
Plugin.call<PiApiKind::piextKernelSetArgMemObj>(Kernel, NextTrueIndex,
nullptr);
}
assert(DeviceImageImpl != nullptr);
RT::PiMem SpecConstsBuffer = DeviceImageImpl->get_spec_const_buffer_ref();
Plugin.call<PiApiKind::piextKernelSetArgMemObj>(Kernel, NextTrueIndex,
&SpecConstsBuffer);
break;
}
}
Expand Down