diff --git a/sycl/source/detail/kernel_bundle_impl.hpp b/sycl/source/detail/kernel_bundle_impl.hpp index 06eefa71c889b..15fd5dca3b885 100644 --- a/sycl/source/detail/kernel_bundle_impl.hpp +++ b/sycl/source/detail/kernel_bundle_impl.hpp @@ -818,7 +818,7 @@ class kernel_bundle_impl { // TODO: Is this the right approach? Should we just pass the queue as an // argument? - queue InitQueue{Dev}; + queue InitQueue{MContext, Dev}; auto &USMMem = Entry->getOrAllocateDeviceGlobalUSM(getSyclObjImpl(InitQueue)); InitQueue.wait_and_throw();