Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 1ff5b9e

Browse files
committed
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
1 parent 03321ca commit 1ff5b9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

device/rocm/rocdevice.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,8 +2564,7 @@ bool Device::IsHwEventReady(const amd::Event& event, bool wait) const {
25642564
ClPrint(amd::LOG_INFO, amd::LOG_SIG, "No HW event");
25652565
return false;
25662566
} else if (wait) {
2567-
auto* vdev = event.command().queue()->vdev();
2568-
WaitForSignal(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_, vdev->ActiveWait());
2567+
WaitForSignal(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_, ActiveWait());
25692568
return true;
25702569
}
25712570
return (hsa_signal_load_relaxed(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_) <= 0);

0 commit comments

Comments
 (0)