P4 to Git Change 1095018 by bdhanase@bala_workpc_ocl on 2014/11/07 14:55:31

EPR #407875 - Fix remote memory size in runtime
	Reviewed by: German

	http://ocltc.amd.com/reviews/r/6248/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#477 edit


[ROCm/clr commit: 668af431f6]
Bu işleme şunda yer alıyor:
foreman
2014-11-07 15:51:14 -05:00
ebeveyn e6c7681bf5
işleme b7684a12ce
+2 -2
Dosyayı Görüntüle
@@ -522,7 +522,7 @@ void Device::fillDeviceInfo(
#endif
if (settings().apuSystem_) {
info_.globalMemSize_ +=
(static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi) / 2;
(static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi);
}
// We try to calculate the largest available memory size from
@@ -537,7 +537,7 @@ void Device::fillDeviceInfo(
#if defined(ATI_OS_WIN)
if (settings().apuSystem_) {
info_.maxMemAllocSize_ = std::max(
((static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi) / 2),
(static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi),
info_.maxMemAllocSize_);
}
#endif