SWDEV-326798 - Avoids waiting for the signal with a timeout and instead queries the current status
Change-Id: I8b4052d5439ca930ceb924da30cb0335f0826a95
This commit is contained in:
committed by
Sourabh Betigeri
parent
b2d412bcf1
commit
b15b3173f4
@@ -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);
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
|
||||
Reference in New Issue
Block a user