P4 to Git Change 1097122 by gandryey@gera-dev-w7 on 2014/11/14 11:06:31
ECR #304775 - Rename GPU_MAX_ALLOC_PERCENT to GPU_SINGLE_ALLOC_PERCENT Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#482 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#219 edit
Этот коммит содержится в:
@@ -542,7 +542,7 @@ void Device::fillDeviceInfo(
|
||||
}
|
||||
#endif
|
||||
info_.maxMemAllocSize_ = cl_ulong(info_.maxMemAllocSize_ *
|
||||
std::min(GPU_MAX_ALLOC_PERCENT, 100u) / 100u);
|
||||
std::min(GPU_SINGLE_ALLOC_PERCENT, 100u) / 100u);
|
||||
|
||||
//! \note Force max single allocation size.
|
||||
//! 4GB limit for the blit kernels and 64 bit optimizations.
|
||||
@@ -554,7 +554,7 @@ void Device::fillDeviceInfo(
|
||||
info_.globalMemSize_ = (std::min(maxHeapSize, 100u)
|
||||
* calAttr.localRAM / 100u) * Mi;
|
||||
|
||||
uint maxAllocSize = flagIsDefault(GPU_MAX_ALLOC_PERCENT) ? 25 : GPU_MAX_ALLOC_PERCENT;
|
||||
uint maxAllocSize = flagIsDefault(GPU_SINGLE_ALLOC_PERCENT) ? 25 : GPU_SINGLE_ALLOC_PERCENT;
|
||||
info_.maxMemAllocSize_ = cl_ulong(info_.globalMemSize_ *
|
||||
std::min(maxAllocSize, 100u) / 100u);
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ release(bool, GPU_IMAGE_DMA, true, \
|
||||
"Enable DRM DMA for image transfers") \
|
||||
release(uint, CPU_MAX_ALLOC_PERCENT, 25, \
|
||||
"Maximum size of a single allocation in MiB") \
|
||||
release(uint, GPU_MAX_ALLOC_PERCENT, 75, \
|
||||
release(uint, GPU_SINGLE_ALLOC_PERCENT, 75, \
|
||||
"Maximum size of a single allocation as percentage of total") \
|
||||
release(uint, GPU_NUM_COMPUTE_RINGS, 2, \
|
||||
"GPU number of compute rings. 0 - disabled, 1 , 2,.. - the number of compute rings") \
|
||||
|
||||
Ссылка в новой задаче
Block a user