From 38a17170495a7806274b565179f6c9b55bc73b43 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 25 Sep 2014 18:46:24 -0400
Subject: [PATCH] P4 to Git Change 1081252 by bdhanase@bala_workpc_ocl on
2014/09/25 18:40:10
EPR #405824 - Back out changelist 1079967. It causes regressions in other apus.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#464 edit
[ROCm/clr commit: 93e05cdac8c81851ebb083adcf0f6e3ab561b11a]
---
projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp | 6 ------
1 file changed, 6 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp
index de63f18530..afcfae562b 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp
@@ -538,12 +538,6 @@ void Device::fillDeviceInfo(
cl_ulong(calStatus.largestBlockVisibleHeap * Mi),
cl_ulong(calStatus.largestBlockInvisibleHeap * Mi));
- if (settings().apuSystem_) {
- info_.maxMemAllocSize_ = std::max(
- ((static_cast(calAttr.uncachedRemoteRAM) * Mi) / 2),
- info_.maxMemAllocSize_);
- }
-
info_.maxMemAllocSize_ = cl_ulong(info_.maxMemAllocSize_ *
std::min(GPU_MAX_ALLOC_PERCENT, 100u) / 100u);