P4 to Git Change 1091664 by bdhanase@bala_workpc_ocl on 2014/10/28 16:36:55

EPR #405824 - Back out changelist 1088793

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#473 edit
This commit is contained in:
foreman
2014-10-28 17:03:08 -04:00
parent eeb3b78b29
commit 62eb98e152
+8 -1
View File
@@ -529,7 +529,14 @@ void Device::fillDeviceInfo(
info_.maxMemAllocSize_ = std::max(
cl_ulong(calStatus.largestBlockVisibleHeap * Mi),
cl_ulong(calStatus.largestBlockInvisibleHeap * Mi));
#if defined(ATI_OS_WIN)
if (settings().apuSystem_) {
info_.maxMemAllocSize_ = std::max(
((static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi) / 2),
info_.maxMemAllocSize_);
}
#endif
info_.maxMemAllocSize_ = cl_ulong(info_.maxMemAllocSize_ *
std::min(GPU_MAX_ALLOC_PERCENT, 100u) / 100u);