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

Change-Id: I8b4052d5439ca930ceb924da30cb0335f0826a95


[ROCm/clr commit: b15b3173f4]
Tá an tiomantas seo le fáil i:
Sourabh Betigeri údaraithe agus Sourabh Betigeri tiomanta 2022-09-06 12:49:46 -04:00
1 tuismitheoir 62bfad38a7
tiomantas bef723c63d
1 comhad athraithe
+1 -2
+1 -2
Féach ar an gComhad
@@ -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);
}
// ================================================================================================