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:
Kowalczuk, Jakub
2018-10-30 11:31:08 +01:00
committed by sys_ocldev
parent 8dc28f2445
commit 1822fb0747
11 changed files with 60 additions and 5 deletions

View File

@@ -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() {