From d1abc0baa28ffd82d10ef4d921605d91ecdf6032 Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 12 Jun 2019 05:55:12 -0400 Subject: [PATCH] P4 to Git Change 1808507 by axie@axie-pal-lc4 on 2019/06/11 14:11:09 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SWDEV-187399 - ​Linux-Pro Pyro_Explosion.hip Image difference is observed specific to W9000 ASIC in OCL mode The issue disappeared when we invalidate L1 cache after each dispatch. This change also fix ocltst runtime OCLMultiQueue test in Tahiti Brahma driver. Tests: http://ocltc.amd.com:8111/viewModification.html?modId=121519&personal=true&tab=vcsModificationBuilds Test in the Houdini app. The symptom disappeared. This change also fix ocltst runtime OCLMultiQueue test in Tahiti Brahma driver. ReviewBoard: http://ocltc.amd.com/reviews/r/17509/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#337 edit --- rocclr/runtime/device/gpu/gpukernel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rocclr/runtime/device/gpu/gpukernel.cpp b/rocclr/runtime/device/gpu/gpukernel.cpp index 5f861f2a6a..ad3dc9bf54 100644 --- a/rocclr/runtime/device/gpu/gpukernel.cpp +++ b/rocclr/runtime/device/gpu/gpukernel.cpp @@ -1443,6 +1443,9 @@ bool Kernel::run(VirtualGPU& gpu, GpuEvent* calEvent, bool lastRun, bool lastDop gpu.rs()->Dispatch(gpu.cs(), &dispatch->gridBlock, &dispatch->partialGridBlock, &dispatch->gridSize, dispatch->localSize, gpu.vmMems(), dispatch->memCount_, lastDoppCmd, pfpaDoppCmd); + + gpu.flushCUCaches(); + gpu.eventEnd(MainEngine, *calEvent); // Unbind all resources