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
This commit is contained in:
@@ -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_ -
|
||||
|
||||
Reference in New Issue
Block a user