SWDEV-326798 - Avoids waiting for the signal with a timeout and instead queries the current status

Change-Id: I8b4052d5439ca930ceb924da30cb0335f0826a95


[ROCm/clr commit: b15b3173f4]
Этот коммит содержится в:
Sourabh Betigeri
2022-08-09 16:24:00 -07:00
коммит произвёл Sourabh Betigeri
родитель 62bfad38a7
Коммит bef723c63d
+1 -2
Просмотреть файл
@@ -2653,8 +2653,7 @@ bool Device::IsHwEventReady(const amd::Event& event, bool wait) const {
} else if (wait) {
return WaitForSignal(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_, ActiveWait());
}
static constexpr bool Timeout = true;
return WaitForSignal<Timeout>(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_);
return (hsa_signal_load_relaxed(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_) == 0);
}
// ================================================================================================