SWDEV-333237 - Disable cache status

Enable Cache status only for ROC_EVENT_NO_FLUSH

Change-Id: I0de4c5af2226bccd66fd704be23c2db33050f2e2
Этот коммит содержится в:
Saleel Kudchadker
2022-04-20 09:26:53 -07:00
родитель 3d514c85b9
Коммит 8864e53265
+3 -1
Просмотреть файл
@@ -2657,7 +2657,9 @@ void Device::getHwEventTime(const amd::Event& event, uint64_t* start, uint64_t*
// ================================================================================================
bool Device::IsCacheFlushed(Device::CacheState state) const {
return (static_cast<int>(state) == cache_state_.load(std::memory_order_relaxed));
return ROC_EVENT_NO_FLUSH ?
(static_cast<int>(state) == cache_state_.load(std::memory_order_relaxed)) : true;
}
// ================================================================================================