From d3213eca90854bbf270f0be35bc8d1c80d301386 Mon Sep 17 00:00:00 2001 From: Saleel Kudchadker Date: Mon, 14 Jun 2021 14:25:30 -0700 Subject: [PATCH] SWDEV-247372 - Reset hasPendingDispatch Reset hasPendingDispatch_ if we insert barrier for time marker. Change-Id: Id038fd4e1c910c0a657978fee00630e49c372321 --- rocclr/device/rocm/rocvirtual.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rocclr/device/rocm/rocvirtual.cpp b/rocclr/device/rocm/rocvirtual.cpp index 8e5f3e9dcd..2a832d26e4 100644 --- a/rocclr/device/rocm/rocvirtual.cpp +++ b/rocclr/device/rocm/rocvirtual.cpp @@ -2930,6 +2930,8 @@ void VirtualGPU::submitMarker(amd::Marker& vcmd) { if (timestamp_ != nullptr) { // Submit a barrier with a cache flushes. dispatchBarrierPacket(kBarrierPacketHeader); + // Reset this flag since we already enable system scope for kBarrierPacketHeader + hasPendingDispatch_ = false; } profilingEnd(vcmd); }