P4 to Git Change 1202323 by xcui@merged_opencl_jxcwin on 2015/10/21 17:01:58

SWDEV-79347 - added a env variable to change the size of the minimum system memory requirement to avoid downgrade OCL support. The default is 2, which means 2GB

	code review:
	http://ocltc.amd.com/reviews/r/8754/

	precheckin:
	http://ocltc.amd.com:8111/viewModification.html?modId=60516&personal=true&buildTypeId=&tab=vcsModificationBuilds&show_all_builds=true

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.cpp#278 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#532 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#243 edit


[ROCm/clr commit: 0bb91b89ba]
This commit is contained in:
foreman
2015-10-21 17:35:18 -04:00
parent 1508bce03f
commit 4870c8d7b7
3 ha cambiato i file con 5 aggiunte e 2 eliminazioni
@@ -763,7 +763,7 @@ Device::create(CALuint ordinal, CALuint numOfDevices)
appProfile_.init();
bool smallMemSystem = false;
if (amd::Os::hostTotalPhysicalMemory() < 2 * Gi) {
if (amd::Os::hostTotalPhysicalMemory() < OCL_SYSMEM_REQUIREMENT * Gi) {
smallMemSystem = true;
}