From 8919f9f434b77a1d9356644fba40273eee27afad Mon Sep 17 00:00:00 2001 From: Saleel Kudchadker Date: Thu, 10 Jun 2021 10:55:32 -0700 Subject: [PATCH] SWDEV-286092 - Use Barrier Header for event Change-Id: I9701fbab587e2ea31e58449e8c8b07341a7aa161 [ROCm/clr commit: 0af6ba94286db365b12c555848b557dee47b3d3d] --- projects/clr/rocclr/device/rocm/rocvirtual.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/projects/clr/rocclr/device/rocm/rocvirtual.cpp b/projects/clr/rocclr/device/rocm/rocvirtual.cpp index e486c43bec..78ebece0d5 100644 --- a/projects/clr/rocclr/device/rocm/rocvirtual.cpp +++ b/projects/clr/rocclr/device/rocm/rocvirtual.cpp @@ -2920,14 +2920,8 @@ void VirtualGPU::submitMarker(amd::Marker& vcmd) { if (vcmd.profilingInfo().marker_ts_) { profilingBegin(vcmd); if (timestamp_ != nullptr) { - // If there was a pending dispatch use a Barrier packet - // with cache flushes. This saves on additional barrier - // for cache flushes explicitly and helps wall time - dispatchBarrierPacket(kNopPacketHeader); - // Direct dispatch requires a barrier with callback and hasPendingDispatch_ triggers that - if (AMD_DIRECT_DISPATCH) { - hasPendingDispatch_ = true; - } + // Submit a barrier with a cache flushes. + dispatchBarrierPacket(kBarrierPacketHeader); } profilingEnd(vcmd); }