We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ac3937 commit 59984ceCopy full SHA for 59984ce
sycl/source/handler.cpp
@@ -2538,7 +2538,11 @@ sycl::detail::CGType handler::getType() const { return impl->MCGType; }
2538
void handler::setDeviceKernelInfo(kernel &&Kernel) {
2539
MKernel = detail::getSyclObjImpl(std::move(Kernel));
2540
MKernelName = getKernelName();
2541
- setDeviceKernelInfoPtr(&MKernel->getDeviceKernelInfo());
+ if (MKernel->isInterop()) {
2542
+ // For regular kernels (created from user functors) the DeviceKernelInfo is
2543
+ // set from the ProgramManager
2544
+ setDeviceKernelInfoPtr(&MKernel->getDeviceKernelInfo());
2545
+ }
2546
setType(detail::CGType::Kernel);
2547
2548
// If any extra actions are added here make sure that logic around
0 commit comments