[llvm] [Offload] Don't create events for empty queues (PR #152304)
Callum Fare via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 06:24:03 PDT 2025
================
@@ -939,6 +939,14 @@ struct GenericDeviceTy : public DeviceAllocatorTy {
Error printInfo();
virtual Expected<InfoTreeNode> obtainInfoImpl() = 0;
+ /// Return true if the device has work that is either queued or currently
+ /// running
+ ///
+ /// Devices which cannot report this information should always return true
----------------
callumfare wrote:
All the UR adapters support it so it should be ok, but yeah otherwise returning `true` is probably the least worst option
https://github.com/llvm/llvm-project/pull/152304
More information about the llvm-commits
mailing list