P4 to Git Change 1236441 by weizhang@weizhang-lnx-opencl on 2016/02/11 12:33:49

SWDEV-78299 - [Brahma] Setting max single allocation size by comparing cardMemAvailableBytes with cardExtMemAvailableBytes on Brahma.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#540 edit
Tento commit je obsažen v:
foreman
2016-02-11 12:41:22 -05:00
rodič c16578eb71
revize 31c030ff18
+6
Zobrazit soubor
@@ -355,9 +355,15 @@ void NullDevice::fillDeviceInfo(
// should be the size we can actually allocate at application
// start. Note that it may not be a guarantee still as the
// application progresses.
#if defined(BRAHMA)
info_.maxMemAllocSize_ = std::max(
cl_ulong(memInfo.cardMemAvailableBytes),
cl_ulong(memInfo.cardExtMemAvailableBytes));
#else
info_.maxMemAllocSize_ = std::max(
cl_ulong(memInfo.cardLargestFreeBlockBytes),
cl_ulong(memInfo.cardExtLargestFreeBlockBytes));
#endif
if (settings().apuSystem_) {
info_.maxMemAllocSize_ = std::max(