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
Este commit está contenido en:
@@ -2125,6 +2125,10 @@ Device::globalFreeMemory(size_t* freeMemory) const
|
|||||||
memInfo.cardExtMemAvailableBytes) / Ki;
|
memInfo.cardExtMemAvailableBytes) / Ki;
|
||||||
freeMemory[LargestFreeBlock] = std::max(memInfo.cardLargestFreeBlockBytes,
|
freeMemory[LargestFreeBlock] = std::max(memInfo.cardLargestFreeBlockBytes,
|
||||||
memInfo.cardExtLargestFreeBlockBytes) / Ki;
|
memInfo.cardExtLargestFreeBlockBytes) / Ki;
|
||||||
|
if (settings().apuSystem_) {
|
||||||
|
freeMemory[TotalFreeMemory] += memInfo.agpMemAvailableBytes / Ki;
|
||||||
|
freeMemory[LargestFreeBlock] += memInfo.agpLargestFreeBlockBytes / Ki;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
freeMemory[TotalFreeMemory] = static_cast<size_t>((info().globalMemSize_ -
|
freeMemory[TotalFreeMemory] = static_cast<size_t>((info().globalMemSize_ -
|
||||||
|
|||||||
Referencia en una nueva incidencia
Block a user