From b15b3173f432bf42b585a510d27b26e727657d50 Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Tue, 9 Aug 2022 16:24:00 -0700 Subject: [PATCH] SWDEV-326798 - Avoids waiting for the signal with a timeout and instead queries the current status Change-Id: I8b4052d5439ca930ceb924da30cb0335f0826a95 --- rocclr/device/rocm/rocdevice.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rocclr/device/rocm/rocdevice.cpp b/rocclr/device/rocm/rocdevice.cpp index 9aaca7c774..531338074d 100644 --- a/rocclr/device/rocm/rocdevice.cpp +++ b/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); } // ================================================================================================