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: 348bfd35d9]
Tento commit je obsažen v:
foreman
2015-02-26 14:33:04 -05:00
rodič 2a93b4aabc
revize 0ee16b5cb3
+2
Zobrazit soubor
@@ -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<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi),
info_.maxMemAllocSize_);
}
#endif
info_.maxMemAllocSize_ = cl_ulong(info_.maxMemAllocSize_ *
std::min(GPU_SINGLE_ALLOC_PERCENT, 100u) / 100u);