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
This commit is contained in:
foreman
2015-02-25 15:34:47 -05:00
parent eb14d64068
commit 4bef580334
-2
View File
@@ -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<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi),
info_.maxMemAllocSize_);
}
#endif
info_.maxMemAllocSize_ = cl_ulong(info_.maxMemAllocSize_ *
std::min(GPU_SINGLE_ALLOC_PERCENT, 100u) / 100u);