diff options
Diffstat (limited to 'offload/plugins-nextgen/common/include/PluginInterface.h')
-rw-r--r-- | offload/plugins-nextgen/common/include/PluginInterface.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/offload/plugins-nextgen/common/include/PluginInterface.h b/offload/plugins-nextgen/common/include/PluginInterface.h index 4b7d410..1d64193 100644 --- a/offload/plugins-nextgen/common/include/PluginInterface.h +++ b/offload/plugins-nextgen/common/include/PluginInterface.h @@ -973,6 +973,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 + Expected<bool> hasPendingWork(__tgt_async_info *AsyncInfo); + virtual Expected<bool> + hasPendingWorkImpl(AsyncInfoWrapperTy &AsyncInfoWrapper) = 0; + /// Getters of the grid values. uint32_t getWarpSize() const { return GridValues.GV_Warp_Size; } uint32_t getThreadLimit() const { return GridValues.GV_Max_WG_Size; } |