SWDEV-290384 - Enable active wait on CPU if HIP requested
Change-Id: Idea5adf7a4705cb999da6785e6229fe3200dce17
This commit is contained in:
committed by
Maneesh Gupta
parent
4589343c3e
commit
2babcfbdbb
@@ -2546,7 +2546,8 @@ 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_);
|
||||
auto* vdev = event.command().queue()->vdev();
|
||||
WaitForSignal(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_, vdev->ActiveWait());
|
||||
return true;
|
||||
}
|
||||
return (hsa_signal_load_relaxed(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_) <= 0);
|
||||
|
||||
Reference in New Issue
Block a user