P4 to Git Change 1236618 by weizhang@msdnweizhang-opencl on 2016/02/11 22:12:34
SWDEV-78299 - Back out changelist 1236441 since OCLCreateBuffer fails. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#541 edit
Esse commit está contido em:
@@ -355,15 +355,9 @@ void NullDevice::fillDeviceInfo(
|
|||||||
// should be the size we can actually allocate at application
|
// should be the size we can actually allocate at application
|
||||||
// start. Note that it may not be a guarantee still as the
|
// start. Note that it may not be a guarantee still as the
|
||||||
// application progresses.
|
// application progresses.
|
||||||
#if defined(BRAHMA)
|
|
||||||
info_.maxMemAllocSize_ = std::max(
|
|
||||||
cl_ulong(memInfo.cardMemAvailableBytes),
|
|
||||||
cl_ulong(memInfo.cardExtMemAvailableBytes));
|
|
||||||
#else
|
|
||||||
info_.maxMemAllocSize_ = std::max(
|
info_.maxMemAllocSize_ = std::max(
|
||||||
cl_ulong(memInfo.cardLargestFreeBlockBytes),
|
cl_ulong(memInfo.cardLargestFreeBlockBytes),
|
||||||
cl_ulong(memInfo.cardExtLargestFreeBlockBytes));
|
cl_ulong(memInfo.cardExtLargestFreeBlockBytes));
|
||||||
#endif
|
|
||||||
|
|
||||||
if (settings().apuSystem_) {
|
if (settings().apuSystem_) {
|
||||||
info_.maxMemAllocSize_ = std::max(
|
info_.maxMemAllocSize_ = std::max(
|
||||||
|
|||||||
Referência em uma Nova Issue
Bloquear um usuário