P4 to Git Change 1093926 by rili@rili_opencl_stg on 2014/11/05 12:06:20

EPR #408506 - Extended the reported global memory size(CL_DEVICE_GLOBAL_FREE_MEMORY_AMD) to include a portion of remote memory for APU

Affected files ...

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


[ROCm/clr commit: dd6074f047]
Этот коммит содержится в:
foreman
2014-11-05 12:33:33 -05:00
родитель 9cc1a81727
Коммит db38e60a77
+4
Просмотреть файл
@@ -2125,6 +2125,10 @@ Device::globalFreeMemory(size_t* freeMemory) const
memInfo.cardExtMemAvailableBytes) / Ki;
freeMemory[LargestFreeBlock] = std::max(memInfo.cardLargestFreeBlockBytes,
memInfo.cardExtLargestFreeBlockBytes) / Ki;
if (settings().apuSystem_) {
freeMemory[TotalFreeMemory] += memInfo.agpMemAvailableBytes / Ki;
freeMemory[LargestFreeBlock] += memInfo.agpLargestFreeBlockBytes / Ki;
}
}
else {
freeMemory[TotalFreeMemory] = static_cast<size_t>((info().globalMemSize_ -