From a1433357fb41b92f00ec3e8be8029ba22c615125 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 29 Jan 2018 17:47:45 -0500
Subject: [PATCH] P4 to Git Change 1509534 by gandryey@gera-w8 on 2018/01/29
17:42:48
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
- Limit the cache size to 1GB with 32 bit
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#41 edit
---
rocclr/runtime/device/pal/palsettings.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rocclr/runtime/device/pal/palsettings.cpp b/rocclr/runtime/device/pal/palsettings.cpp
index f7a2d9c95a..e7e5060c49 100644
--- a/rocclr/runtime/device/pal/palsettings.cpp
+++ b/rocclr/runtime/device/pal/palsettings.cpp
@@ -413,6 +413,9 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
resourceCacheSize_ =
std::max(((heaps[Pal::GpuHeapLocal].heapSize + heaps[Pal::GpuHeapInvisible].heapSize) / 8),
(uint64_t)GPU_RESOURCE_CACHE_SIZE * Mi);
+#if !defined(_LP64)
+ resourceCacheSize_ = std::min(resourceCacheSize_, 1 * Gi);
+#endif
}
#if defined(WITH_LIGHTNING_COMPILER)