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]
Этот коммит содержится в:
@@ -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_ -
|
||||
|
||||
Ссылка в новой задаче
Block a user