================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to