SWDEV-326798 - Avoids waiting for the signal with a timeout and instead queries the current status
Change-Id: I8b4052d5439ca930ceb924da30cb0335f0826a95
[ROCm/clr commit: b15b3173f4]
Este cometimento está contido em:
1 ascendente
62bfad38a7
cometimento
bef723c63d
1 ficheiro modificado
+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);
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador