diff --git a/projects/clr/rocclr/device/rocm/rocdevice.cpp b/projects/clr/rocclr/device/rocm/rocdevice.cpp index 9aaca7c774..531338074d 100644 --- a/projects/clr/rocclr/device/rocm/rocdevice.cpp +++ b/projects/clr/rocclr/device/rocm/rocdevice.cpp @@ -2653,8 +2653,7 @@ bool Device::IsHwEventReady(const amd::Event& event, bool wait) const { } else if (wait) { return WaitForSignal(reinterpret_cast(hw_event)->signal_, ActiveWait()); } - static constexpr bool Timeout = true; - return WaitForSignal(reinterpret_cast(hw_event)->signal_); + return (hsa_signal_load_relaxed(reinterpret_cast(hw_event)->signal_) == 0); } // ================================================================================================