From 83d83e61665358548f736264d357e031899efbae Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Tue, 14 Sep 2021 18:21:57 -0400 Subject: [PATCH] SWDEV-302383 - Get active state from device The queue can be destroyed at the time the app will request the event status. Hence just get the active state from the device. Change-Id: I887ecb0cfe414c2119247228b0d1255b8308da1e [ROCm/clr commit: f116959b549afc75baaa3a2b1d7b4565848c8501] --- projects/clr/rocclr/device/rocm/rocdevice.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/clr/rocclr/device/rocm/rocdevice.cpp b/projects/clr/rocclr/device/rocm/rocdevice.cpp index bfde477a4c..528a86a1d5 100644 --- a/projects/clr/rocclr/device/rocm/rocdevice.cpp +++ b/projects/clr/rocclr/device/rocm/rocdevice.cpp @@ -2564,8 +2564,7 @@ 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) { - auto* vdev = event.command().queue()->vdev(); - WaitForSignal(reinterpret_cast(hw_event)->signal_, vdev->ActiveWait()); + WaitForSignal(reinterpret_cast(hw_event)->signal_, ActiveWait()); return true; } return (hsa_signal_load_relaxed(reinterpret_cast(hw_event)->signal_) <= 0);