[llvm-branch-commits] [llvm] [offload] Thread allocation kind through async info (PR #214755)

Robert Imschweiler via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Aug 7 08:12:51 PDT 2026


================
@@ -1001,7 +1003,35 @@ Error GenericDeviceTy::queryAsync(__tgt_async_info *AsyncInfo,
     return Plugin::error(ErrorCode::INVALID_ARGUMENT,
                          "invalid async info queue");
 
-  return queryAsyncImpl(*AsyncInfo, ReleaseQueue, IsQueueWorkCompleted);
+  bool WorkCompleted = false;
----------------
ro-i wrote:

roughtly copy-pasted from synchronize(), so that there is no race between users of allocations and the cleanup happening later in the function. At least that's how I understood the mechanism 

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


More information about the llvm-branch-commits mailing list