P4 to Git Change 1207590 by xcui@merged_opencl_jxcwin on 2015/11/04 16:20:09

SWDEV-80174 - added an env variable OCL_SET_SVM_SIZE to change the SVM size of the device, if it support SVM. This is part of implemenation to change SVM size based on system memory size and device memory size.
	This is the changes in OpenCL  side.

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

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#149 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#246 edit
Αυτή η υποβολή περιλαμβάνεται σε:
foreman committed 2015-11-04 17:14:47 -05:00
1 γονέας 28c0cbc150
υποβολή 8a82228927
2 files changed
+6

No files matched your search

@@ -207,6 +207,10 @@ CALGSLDevice::open(uint32 gpuIndex, bool enableHighPerformanceState, bool report
m_dcfg.syncObjectMode.value = (GPU_USE_SYNC_OBJECTS) ?
GSL_CONFIG_SYNCOBJECT_MODE_ON : GSL_CONFIG_SYNCOBJECT_MODE_OFF;
// Use OCL_SET_SVM_SIZE to set SVM size we need
m_dcfg.ndevSVMSize.hasValue = true;
m_dcfg.ndevSVMSize.value = OCL_SET_SVM_SIZE;
// Use GPU_IFH_MODE to test with IFH mode enabled
m_dcfg.DropFlush.hasValue = true;
m_dcfg.DropFlush.value = (GPU_IFH_MODE == 1);