P4 to Git Change 1146707 by bdhanase@bala_workpc_ocl on 2015/05/01 18:29:18
EPR #410821 - Reduced the maxMemAlloc and global memory size on APUs to 75% of uncachedRemoteRAM.
http://ocltc.amd.com/reviews/r/7425/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#509 edit
[ROCm/clr commit: 51f8154b23]
This commit is contained in:
@@ -314,7 +314,7 @@ void NullDevice::fillDeviceInfo(
|
|||||||
#endif
|
#endif
|
||||||
if (settings().apuSystem_) {
|
if (settings().apuSystem_) {
|
||||||
info_.globalMemSize_ +=
|
info_.globalMemSize_ +=
|
||||||
(static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi);
|
(static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi * 75)/100;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We try to calculate the largest available memory size from
|
// We try to calculate the largest available memory size from
|
||||||
@@ -329,7 +329,7 @@ void NullDevice::fillDeviceInfo(
|
|||||||
#if defined(ATI_OS_WIN)
|
#if defined(ATI_OS_WIN)
|
||||||
if (settings().apuSystem_) {
|
if (settings().apuSystem_) {
|
||||||
info_.maxMemAllocSize_ = std::max(
|
info_.maxMemAllocSize_ = std::max(
|
||||||
(static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi),
|
(static_cast<cl_ulong>(calAttr.uncachedRemoteRAM) * Mi * 75)/100,
|
||||||
info_.maxMemAllocSize_);
|
info_.maxMemAllocSize_);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user