From c945a7f20759fb1c7bb48890eafe34e73e839615 Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 15 Oct 2014 17:44:44 -0400
Subject: [PATCH] P4 to Git Change 1087846 by bdhanase@bala_workpc_ocl on
2014/10/15 17:33:32
EPR #407358 - Enable remoteAlloc_ by default if the frame buffer is less than 128 MB on an APU system
Reviewed by: German
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#290 edit
[ROCm/clr commit: e00c0d69929df0276f2e36b282b6e3a970053309]
---
projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp b/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp
index 29a124800d..4bf815588d 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpusettings.cpp
@@ -443,6 +443,11 @@ Settings::create(
enableExtension(ClKhrDepthImages);
}
+ if (apuSystem_ &&
+ ((calAttr.totalVisibleHeap + calAttr.totalInvisibleHeap) < 150)) {
+ remoteAlloc_ = true;
+ }
+
// Override current device settings
override();