[llvm] [OFFLOAD] Add asynchronous queue query API for libomptarget migration (PR #172231)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 16 12:55:27 PST 2026


================
@@ -1231,5 +1231,13 @@ Error olMemUnregister_impl(ol_device_handle_t Device, void *Ptr) {
   return Device->Device->dataUnlock(Ptr);
 }
 
+Error olQueryAsync_impl(ol_queue_handle_t Queue) {
----------------
fineg74 wrote:

It is probably confusing function name. The purpose of this function is to check if any enqueued work is completed and if es do the internal clean up. All this without blocking the calling thread. The return value is the same unless internal clean up failed for some reason. It is pretty similar to existing olSyncQueue with the only difference that olSyncQueue  will wait and block the calling thread if there is unfinished enqueued work while olQueryQueue won't

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


More information about the llvm-commits mailing list