Skip to content

Commit 0380d1c

Browse files
committed
Correctly handle interop kernels
Signed-off-by: Steffen Larsen <[email protected]>
1 parent 17836b3 commit 0380d1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sycl/source/handler.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,9 @@ event handler::finalize() {
227227
// If there were uses of set_specialization_constant build the kernel_bundle
228228
KernelBundleImpPtr = getOrInsertHandlerKernelBundle(/*Insert=*/false);
229229
if (KernelBundleImpPtr) {
230-
// Make sure implicit kernel bundles has the kernel
231-
if (!getHandlerImpl()->isStateExplicitKernelBundle()) {
230+
// Make sure implicit non-interop kernel bundles have the kernel
231+
if (!KernelBundleImpPtr->isInterop() &&
232+
!getHandlerImpl()->isStateExplicitKernelBundle()) {
232233
kernel_id KernelID =
233234
detail::ProgramManager::getInstance().getSYCLKernelID(MKernelName);
234235
KernelBundleImpPtr->add_kernel(KernelID, MQueue->get_device());

0 commit comments

Comments
 (0)