SWDEV-335780 - Indicate if handler is queued
Maintain status of handler callback. For event records we no longer
submit callbacks to reduce the load on the async handler thread. However
without a callback we leak command memory/decrement refcounts. Indicate
status of the handler which we can use to queue a callback when
finish is called.
Change-Id: I89fd02f3d047a0e8162664ee17581a14795f1928
[ROCm/clr commit: 5df34a2f7a]
This commit is contained in:
@@ -2659,7 +2659,7 @@ void Device::getHwEventTime(const amd::Event& event, uint64_t* start, uint64_t*
|
||||
// ================================================================================================
|
||||
bool Device::IsCacheFlushed(Device::CacheState state) const {
|
||||
|
||||
return ROC_EVENT_NO_FLUSH ?
|
||||
return ROC_EVENT_NO_FLUSH ?
|
||||
(static_cast<int>(state) == cache_state_.load(std::memory_order_relaxed)) : true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user