diff --git a/projects/clr/rocclr/runtime/device/pal/palvirtual.cpp b/projects/clr/rocclr/runtime/device/pal/palvirtual.cpp index 1328922512..78a96fb2e2 100644 --- a/projects/clr/rocclr/runtime/device/pal/palvirtual.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palvirtual.cpp @@ -2260,6 +2260,8 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes, const // when the packet can be processed later after this dispatch and including extra time if (profiling() || state_.profileEnabled_) { addBarrier(); + // Clear memory dependency to avoid the second L1 invalidation + memoryDependency().clear(); } if (id != gpuEvent.id_) { LogError("Something is wrong. ID mismatch!\n");