[llvm] [Offload] Make olLaunchKernel test thread safe (PR #149497)

Kevin Sala Penades via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 21 13:50:02 PDT 2025


================
@@ -487,16 +487,10 @@ Error olWaitQueue_impl(ol_queue_handle_t Queue) {
   // Host plugin doesn't have a queue set so it's not safe to call synchronize
   // on it, but we have nothing to synchronize in that situation anyway.
   if (Queue->AsyncInfo->Queue) {
-    if (auto Err = Queue->Device->Device->synchronize(Queue->AsyncInfo))
+    if (auto Err = Queue->Device->Device->synchronize(Queue->AsyncInfo, false))
----------------
kevinsala wrote:

This code assumes other threads will not release the queue from that async info, right?

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


More information about the llvm-commits mailing list