[llvm] [offload] Add context parameter to olCreateQueue (PR #213057)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 03:12:08 PDT 2026


=?utf-8?q?Łukasz?= Plewa <lukasz.plewa at intel.com>,
=?utf-8?q?Łukasz?= Plewa <lukasz.plewa at intel.com>,
=?utf-8?q?Łukasz?= Plewa <lukasz.plewa at intel.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/213057 at github.com>


================
@@ -1218,12 +1220,13 @@ Error GenericDeviceTy::launchKernel(void *EntryPtr, void **ArgPtrs,
   return Err;
 }
 
-Error GenericDeviceTy::initAsyncInfo(__tgt_async_info **AsyncInfoPtr) {
+Error GenericDeviceTy::initAsyncInfo(__tgt_async_info **AsyncInfoPtr,
+                                     PluginContextTy *Context) {
   assert(AsyncInfoPtr && "Invalid async info");
 
   *AsyncInfoPtr = new __tgt_async_info();
 
-  AsyncInfoWrapperTy AsyncInfoWrapper(*this, *AsyncInfoPtr);
+  AsyncInfoWrapperTy AsyncInfoWrapper(*this, *AsyncInfoPtr, Context);
----------------
blazej-smorawski wrote:

I think that we could move the factory method into some GenericContextTy and maybe use it to register context for device/queue, so level zero could store it's needed deps inside.

https://github.com/llvm/llvm-project/pull/213057


More information about the llvm-commits mailing list