Control enabling of local memory based on OS and HW Capabilities

Change-Id: Ia26c856aeef27fe638b7a6e895cc289859f3c579
This commit is contained in:
Kowalczuk, Jakub
2018-10-12 15:20:02 +02:00
committed by sys_ocldev
parent 7319023b0f
commit 8ead8f727f
12 changed files with 54 additions and 1 deletions

View File

@@ -113,7 +113,7 @@ bool Device::createDeviceImpl(const HardwareInfo *pHwInfo, Device &outDevice) {
if (!executionEnvironment->initializeCommandStreamReceiver(pHwInfo, outDevice.getDeviceIndex())) {
return false;
}
executionEnvironment->initializeMemoryManager(outDevice.getEnabled64kbPages(), outDevice.getHardwareCapabilities().localMemorySupported, outDevice.getDeviceIndex());
executionEnvironment->initializeMemoryManager(outDevice.getEnabled64kbPages(), outDevice.getEnableLocalMemory(), outDevice.getDeviceIndex());
outDevice.osContext = new OsContext(executionEnvironment->osInterface.get(), outDevice.getDeviceIndex());
executionEnvironment->memoryManager->registerOsContext(outDevice.osContext);