SWDEV-305016 - Add a timeout wait into IsHwEventReady()
Just signal check will still submit the marker and then later runtime will have a timeout, but the barrier packet is still generated. Hence early timeout will allow to skip the marker. Change-Id: Ieb7d89becbcff43a4f4c46715354ca65ab4a80b9
Этот коммит содержится в:
@@ -2565,10 +2565,10 @@ bool Device::IsHwEventReady(const amd::Event& event, bool wait) const {
|
||||
ClPrint(amd::LOG_INFO, amd::LOG_SIG, "No HW event");
|
||||
return false;
|
||||
} else if (wait) {
|
||||
WaitForSignal(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_, ActiveWait());
|
||||
return true;
|
||||
return WaitForSignal(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_, ActiveWait());
|
||||
}
|
||||
return (hsa_signal_load_relaxed(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_) <= 0);
|
||||
static constexpr bool Timeout = true;
|
||||
return WaitForSignal<Timeout>(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_);
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
|
||||
Ссылка в новой задаче
Block a user