[llvm] [Offload] Don't create events for empty queues (PR #152304)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 06:16:51 PDT 2025
================
@@ -590,7 +597,16 @@ Error olGetEventInfoSize_impl(ol_event_handle_t Event, ol_event_info_t PropName,
}
Error olCreateEvent_impl(ol_queue_handle_t Queue, ol_event_handle_t *EventOut) {
+ auto Pending = Queue->Device->Device->hasPendingWork(Queue->AsyncInfo);
----------------
jhuber6 wrote:
Unrelated, would be nice to have something nicer than `Device->Device->`.
https://github.com/llvm/llvm-project/pull/152304
More information about the llvm-commits
mailing list