From 4bef5803349fd6b0e9a71de31c219b6df09c889f Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 25 Feb 2015 15:34:47 -0500
Subject: [PATCH] P4 to Git Change 1125022 by bdhanase@bala_workpc_ocl on
2015/02/25 15:03:52
EPR #405824 - Remove #ifdef ATI_OS_WIN for the maxMemAllocSize_ calculation
Reviewed by: German
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#496 edit
---
rocclr/runtime/device/gpu/gpudevice.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/rocclr/runtime/device/gpu/gpudevice.cpp b/rocclr/runtime/device/gpu/gpudevice.cpp
index c6a3bcffed..7a4c11ffb5 100644
--- a/rocclr/runtime/device/gpu/gpudevice.cpp
+++ b/rocclr/runtime/device/gpu/gpudevice.cpp
@@ -572,13 +572,11 @@ void Device::fillDeviceInfo(
cl_ulong(calStatus.largestBlockVisibleHeap * Mi),
cl_ulong(calStatus.largestBlockInvisibleHeap * Mi));
-#if defined(ATI_OS_WIN)
if (settings().apuSystem_) {
info_.maxMemAllocSize_ = std::max(
(static_cast(calAttr.uncachedRemoteRAM) * Mi),
info_.maxMemAllocSize_);
}
-#endif
info_.maxMemAllocSize_ = cl_ulong(info_.maxMemAllocSize_ *
std::min(GPU_SINGLE_ALLOC_PERCENT, 100u) / 100u);