P4 to Git Change 1082396 by gandryey@gera-w7 on 2014/09/29 17:30:00

EPR #406110 - OCL20:Basic subtest fails when running on GPU
	- Reduce max prog variable size to 90% of max single allocation

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#465 edit


[ROCm/clr commit: 617422f40f]
Este commit está contenido en:
foreman
2014-09-29 18:19:04 -04:00
padre 6292b4d113
commit 5d928a925c
@@ -726,7 +726,11 @@ void Device::fillDeviceInfo(
info_.maxOnDeviceQueues_ = 1;
info_.maxOnDeviceEvents_ = settings().numDeviceEvents_;
info_.globalVariablePreferredTotalSize_ = static_cast<size_t>(info_.globalMemSize_);
info_.maxGlobalVariableSize_ = static_cast<size_t>(info_.maxMemAllocSize_);
//! \todo Remove % calculation.
//! Use 90% of max single alloc size.
//! Boards with max single alloc size around 4GB will fail allocations
info_.maxGlobalVariableSize_ = static_cast<size_t>(
amd::alignDown(info_.maxMemAllocSize_ * 9 / 10, 256));
}
if (settings().checkExtension(ClAmdDeviceAttributeQuery)) {