From 67bb022698975918dfd725cbcc24ba430205f044 Mon Sep 17 00:00:00 2001 From: Anusha GodavarthySurya Date: Tue, 19 Dec 2023 17:02:52 +0000 Subject: [PATCH] SWDEV-422207 - Fix simple graph test when DEBUG_CLR_GRAPH_PACKET_CAPTURE flag is enabled - For new AccumulateCommand we enqueue nop barrier packet. So during stream sync we need system flush. Change-Id: I0b97b626bcdae582ef95e7c95030d78df1fa5a54 [ROCm/clr commit: 748c6b3520c1627bd0b2c71a14f69703996b15c9] --- projects/clr/rocclr/device/rocm/rocvirtual.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/clr/rocclr/device/rocm/rocvirtual.cpp b/projects/clr/rocclr/device/rocm/rocvirtual.cpp index 34a4e1a0b0..5905894671 100644 --- a/projects/clr/rocclr/device/rocm/rocvirtual.cpp +++ b/projects/clr/rocclr/device/rocm/rocvirtual.cpp @@ -859,6 +859,10 @@ bool VirtualGPU::dispatchGenericAqlPacket( fence_state_ = static_cast(expected_fence_state); + if (expected_fence_state != amd::Device::kCacheStateSystem) { + fence_dirty_ = true; + } + if (timestamp_ != nullptr) { // Get active signal for current dispatch if profiling is necessary packet->completion_signal = Barriers().ActiveSignal(kInitSignalValueOne, timestamp_);