From 81b9faadba4366b960ab3cea83031abe727ed28f Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 23 Sep 2014 16:03:00 -0400
Subject: [PATCH] P4 to Git Change 1080034 by jatang@jatang-ocl-lnx2 on
2014/09/23 15:47:25
EPR #406216 - Revert CL#1076975 for Linux for now due to ASIC hang.
Keep the change for Windows.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#283 edit
---
rocclr/runtime/device/gpu/gpusettings.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/rocclr/runtime/device/gpu/gpusettings.cpp b/rocclr/runtime/device/gpu/gpusettings.cpp
index 78bcdb6dd6..13fd12f1d9 100644
--- a/rocclr/runtime/device/gpu/gpusettings.cpp
+++ b/rocclr/runtime/device/gpu/gpusettings.cpp
@@ -155,7 +155,12 @@ Settings::create(
threadTraceEnable_ = false;
// Save resource cache size
+#ifdef ATI_OS_LINUX
+ // Due to EPR#406216, set the default value for Linux for now
+ resourceCacheSize_ = GPU_RESOURCE_CACHE_SIZE * Mi;
+#else
resourceCacheSize_ = std::max((calAttr.localRAM / 8) * Mi, GPU_RESOURCE_CACHE_SIZE * Mi);
+#endif
if (calAttr.doublePrecision) {
// Report FP_FAST_FMA define if double precision HW