mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
Add debug flag to control fine grain SVM reporting.
Change-Id: Ia5c8b8798951d87aa81799ac3a3f456d10e1aceb Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
5be85293d6
commit
71950fa7cc
@@ -404,9 +404,16 @@ void ClDevice::initializeCaps() {
|
||||
|
||||
deviceInfo.linkerAvailable = true;
|
||||
deviceInfo.svmCapabilities = hwInfo.capabilityTable.ftrSvm * CL_DEVICE_SVM_COARSE_GRAIN_BUFFER;
|
||||
deviceInfo.svmCapabilities |= static_cast<cl_device_svm_capabilities>(
|
||||
hwInfo.capabilityTable.ftrSvm * hwInfo.capabilityTable.ftrSupportsCoherency *
|
||||
(CL_DEVICE_SVM_FINE_GRAIN_BUFFER | CL_DEVICE_SVM_ATOMICS));
|
||||
if (hwInfo.capabilityTable.ftrSvm) {
|
||||
auto reportFineGrained = hwInfo.capabilityTable.ftrSvm * hwInfo.capabilityTable.ftrSupportsCoherency;
|
||||
if (DebugManager.flags.ForceFineGrainedSVMSupport.get() != -1) {
|
||||
reportFineGrained = !!DebugManager.flags.ForceFineGrainedSVMSupport.get();
|
||||
}
|
||||
if (reportFineGrained) {
|
||||
deviceInfo.svmCapabilities |= static_cast<cl_device_svm_capabilities>(CL_DEVICE_SVM_FINE_GRAIN_BUFFER | CL_DEVICE_SVM_ATOMICS);
|
||||
}
|
||||
}
|
||||
|
||||
deviceInfo.preemptionSupported = false;
|
||||
deviceInfo.maxGlobalVariableSize = 64 * 1024;
|
||||
deviceInfo.globalVariablePreferredTotalSize = static_cast<size_t>(sharedDeviceInfo.maxMemAllocSize);
|
||||
|
||||
Reference in New Issue
Block a user