Skip to content

Commit 5a729ba

Browse files
committed
Mark bundle as interop.
Signed-off-by: Julian Oppermann <[email protected]>
1 parent 5f4c20e commit 5a729ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sycl/source/detail/kernel_bundle_impl.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,12 @@ class kernel_bundle_impl {
384384
syclex::source_language Lang)
385385
: kernel_bundle_impl(Ctx, Devs, KernelIDs, bundle_state::executable) {
386386
assert(Lang == syclex::source_language::sycl_jit);
387+
// Mark this bundle explicitly as "interop" to ensure that its kernels are
388+
// enqueued with the info from the kernel object passed by the application,
389+
// cf. `enqueueImpKernel` in `commands.cpp`. While runtime-compiled kernels
390+
// loaded via the program manager have `kernel_id`s, they can't be looked up
391+
// from the (unprefixed) kernel name.
392+
MIsInterop = true;
387393
KernelNames = KNames;
388394
Prefix = Pfx;
389395
Language = Lang;

0 commit comments

Comments
 (0)