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: 93e05cdac8]
This commit is contained in:
foreman
2014-09-25 18:46:24 -04:00
orang tua 2e8f7fb0e3
melakukan 38a1717049
@@ -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<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi) / 2),
info_.maxMemAllocSize_);
}
info_.maxMemAllocSize_ = cl_ulong(info_.maxMemAllocSize_ *
std::min(GPU_MAX_ALLOC_PERCENT, 100u) / 100u);