diff --git a/rocclr/hip_event.cpp b/rocclr/hip_event.cpp index 1a1d242804..665a4c2148 100755 --- a/rocclr/hip_event.cpp +++ b/rocclr/hip_event.cpp @@ -182,6 +182,11 @@ void Event::addMarker(amd::HostQueue* queue, amd::Command* command, bool record) } event_ = &command->event(); + // Notify queue earlier so SW status for the command can be updated faster, + // since marker potentially means a wait + if (AMD_DIRECT_DISPATCH && (flags & hipEventDisableTiming)) { + command->notifyCmdQueue(); + } recorded_ = record; }