mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
Control enabling of local memory based on OS and HW Capabilities part 2
- add EnableLocalMemory debug variable - separate OSInterface::osEnableLocalMemory for dll and unit tests Change-Id: I78a1f60364eece28b30ce3e91418e7d72ba3e0d9
This commit is contained in:
committed by
sys_ocldev
parent
8dc28f2445
commit
1822fb0747
@@ -53,7 +53,11 @@ bool Device::getEnabled64kbPages() {
|
||||
};
|
||||
|
||||
bool Device::getEnableLocalMemory() {
|
||||
return OSInterface::osEnableLocalMemory && getHardwareCapabilities().localMemorySupported;
|
||||
if (DebugManager.flags.EnableLocalMemory.get() == true) {
|
||||
return true;
|
||||
} else {
|
||||
return OSInterface::osEnableLocalMemory && getHardwareCapabilities().localMemorySupported;
|
||||
}
|
||||
};
|
||||
|
||||
void Device::setupFp64Flags() {
|
||||
|
||||
Reference in New Issue
Block a user