diff --git a/rocclr/device/rocm/rocdevice.cpp b/rocclr/device/rocm/rocdevice.cpp index dc609b45f9..5577167822 100644 --- a/rocclr/device/rocm/rocdevice.cpp +++ b/rocclr/device/rocm/rocdevice.cpp @@ -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(hw_event)->signal_, ActiveWait()); - return true; + return WaitForSignal(reinterpret_cast(hw_event)->signal_, ActiveWait()); } - return (hsa_signal_load_relaxed(reinterpret_cast(hw_event)->signal_) <= 0); + static constexpr bool Timeout = true; + return WaitForSignal(reinterpret_cast(hw_event)->signal_); } // ================================================================================================