From 0ee16b5cb35bde344b0f964f598b4985798ad64d Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 26 Feb 2015 14:33:04 -0500
Subject: [PATCH] P4 to Git Change 1125439 by bdhanase@bala_workpc_ocl on
2015/02/26 14:21:49
EPR #405824 - Back out changelist 1125022 because of failures in Linux.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#497 edit
[ROCm/clr commit: 348bfd35d955f8374b8c49af1f4557e65c814621]
---
projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp
index 7a4c11ffb5..c6a3bcffed 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp
@@ -572,11 +572,13 @@ 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);