SWDEV-333237 - Disable cache status

Enable Cache status only for ROC_EVENT_NO_FLUSH

Change-Id: I0de4c5af2226bccd66fd704be23c2db33050f2e2


[ROCm/clr commit: 8864e53265]
Cette révision appartient à :
Saleel Kudchadker a révisé 2022-04-20 18:12:33 -04:00
1 Parent ad6b22597e
révision 415c5a5766
1 fichier modifié
+3 -1
+3 -1
Voir le fichier
@@ -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;
}
// ================================================================================================