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