From 9fc0bddbf01c396106342776216b85166bbc6c8f Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Fri, 16 Apr 2021 17:55:20 -0400 Subject: [PATCH] SWDEV-278896 - Notify GPU about possible wait Early notification allows CPU command state to be processed earlier. Otherwise state update will be delayed until the actual possible wait. Change-Id: I0e9d6c2ad88e3723eab2f6dc9a20f288f6c1ca0c --- rocclr/hip_event.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; }