From b7684a12ce686db0f4a60ae2728fb0502332eebd Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 7 Nov 2014 15:51:14 -0500 Subject: [PATCH] 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: 668af431f63d6cfcf45b43d700a70bdcc928b036] --- projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp index e803008b66..038345a085 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpudevice.cpp @@ -522,7 +522,7 @@ void Device::fillDeviceInfo( #endif if (settings().apuSystem_) { info_.globalMemSize_ += - (static_cast(calAttr.uncachedRemoteRAM) * Mi) / 2; + (static_cast(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(calAttr.uncachedRemoteRAM) * Mi) / 2), + (static_cast(calAttr.uncachedRemoteRAM) * Mi), info_.maxMemAllocSize_); } #endif