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); }