diff --git a/hipamd/src/hip_event.cpp b/hipamd/src/hip_event.cpp index 3f37b39c51..855dca47af 100755 --- a/hipamd/src/hip_event.cpp +++ b/hipamd/src/hip_event.cpp @@ -116,6 +116,7 @@ hipError_t Event::elapsedTime(Event& eStop, float& ms) { } else { // Note: with direct dispatch eStop.ready() relies on HW event, but CPU status can be delayed. // Hence for now make sure CPU status is updated by calling awaitCompletion(); + event_->awaitCompletion(); eStop.event_->awaitCompletion(); ms = static_cast(eStop.time() - time())/1000000.f; }