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

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 07:39:19 PDT 2026


=?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>


================
@@ -631,6 +641,11 @@ Error olCreateContext_impl(size_t DevicesCount, ol_device_handle_t *Devices,
 }
 
 Error olDestroyContext_impl(ol_context_handle_t Context) {
+  if (auto Err = Context->drainOutstandingQueues())
+    return Err;
+  if (Context->PluginCtx)
+    if (auto Err = Context->PluginCtx->deinit())
+      return Err;
----------------
adurang wrote:

nit:
Maybe this would be better  encapsulated inside a Destroy method in Context than here.

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


More information about the llvm-commits mailing list