[llvm] [Offload][omp] Use liboffload queues for AsyncInfo (PR #229713)

Robert Imschweiler via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 05:04:21 PDT 2026


================
@@ -125,6 +130,20 @@ llvm::Error DeviceTy::init() {
   return llvm::Error::success();
 }
 
+llvm::Error DeviceTy::deinit() {
+  OMPT_IF_BUILT_AND_INITIALIZED(
+      { performOmptCallback(device_finalize, DeviceID); });
+
+  if (!Context)
+    return llvm::Error::success();
+  if (auto Res = olDestroyContext(Context))
----------------
ro-i wrote:

is it possible that there are still AsyncInfo objects using this context alive?

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


More information about the llvm-commits mailing list