[all-commits] [llvm/llvm-project] a44532: [Offload] Don't create events for empty queues (#1...
Ross Brunton via All-commits
all-commits at lists.llvm.org
Thu Aug 7 02:16:54 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a44532544bd96c68ce2bc885d0cc0c4c9116f8b1
https://github.com/llvm/llvm-project/commit/a44532544bd96c68ce2bc885d0cc0c4c9116f8b1
Author: Ross Brunton <ross at codeplay.com>
Date: 2025-08-07 (Thu, 07 Aug 2025)
Changed paths:
M offload/liboffload/src/OffloadImpl.cpp
M offload/plugins-nextgen/amdgpu/src/rtl.cpp
M offload/plugins-nextgen/common/include/PluginInterface.h
M offload/plugins-nextgen/common/src/PluginInterface.cpp
M offload/plugins-nextgen/cuda/src/rtl.cpp
M offload/plugins-nextgen/host/src/rtl.cpp
Log Message:
-----------
[Offload] Don't create events for empty queues (#152304)
Add a device function to check if a device queue is empty. If liboffload
tries to create an event for an empty queue, we create an "empty" event
that is already complete.
This allows `olCreateEvent`, `olSyncEvent` and `olWaitEvent` to run
quickly for empty queues.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list