[llvm] [Offload] Make olLaunchKernel test thread safe (PR #149497)
Ross Brunton via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 22 04:24:37 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))
----------------
RossBrunton wrote:
Correct, although as far as I know, liboffload doesn't do that, and that feels reasonable as a thing to mark as undefined.
https://github.com/llvm/llvm-project/pull/149497
More information about the llvm-commits
mailing list