From a6df3575286080eb10a77d390266b1f70242839a Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 25 Jan 2018 17:55:06 -0500 Subject: [PATCH] P4 to Git Change 1508149 by gandryey@gera-w8 on 2018/01/25 17:02:46 SWDEV-143822 - [CQE OCL][Vega10][OCLtst][DTB-Blocker][QR] 8 out of 50 failures are observed with OCLPerf 32bit test; due to Faulty CL# 1502648 - Free resource cache if PAL failed memory allocation Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#47 edit [ROCm/clr commit: 142e5908eefa16fedc4d52eb72325b65c2b952ae] --- projects/clr/rocclr/runtime/device/pal/palresource.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/clr/rocclr/runtime/device/pal/palresource.cpp b/projects/clr/rocclr/runtime/device/pal/palresource.cpp index 73565bac0f..1ee7d2ca37 100644 --- a/projects/clr/rocclr/runtime/device/pal/palresource.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palresource.cpp @@ -41,6 +41,8 @@ GpuMemoryReference* GpuMemoryReference::Create(const Device& dev, result = dev.iDev()->CreateGpuMemory(createInfo, &memRef[1], &memRef->gpuMem_); if (result != Pal::Result::Success) { memRef->release(); + // Free cache if PAL failed allocation + dev.resourceCache().free(); return nullptr; } }