From 8fb0d789a9d85dd73fe6f75460e2b155c3931c8b Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 23 Jul 2018 18:19:58 -0400
Subject: [PATCH] P4 to Git Change 1584196 by gandryey@gera-w8 on 2018/07/23
18:05:14
SWDEV-79445 - OCL generic changes and code clean-up
- Reset memory dependency if runtime invalidated L1 for the profiling logic workaround. Profiling can be enabled for wave limiter, which could cause L1 invalidation twice.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#116 edit
[ROCm/clr commit: c84525aa73f17a405537f71e7bb47bf9f7d02960]
---
projects/clr/rocclr/runtime/device/pal/palvirtual.cpp | 2 ++
1 file changed, 2 insertions(+)
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");