mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Reverse logic of creating Memory Manager - part 1
-remove CSR::createMemoryManager method -create MM from platform before creating devices Change-Id: I0e7f091c53b0e60ae7101e82a305253af626330e Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "runtime/helpers/string.h"
|
||||
#include "runtime/os_interface/debug_settings_manager.h"
|
||||
#include "runtime/os_interface/device_factory.h"
|
||||
#include "runtime/os_interface/os_interface.h"
|
||||
#include "runtime/platform/extensions.h"
|
||||
#include "runtime/sharings/sharing_factory.h"
|
||||
#include "runtime/source_level_debugger/source_level_debugger.h"
|
||||
@@ -140,6 +141,11 @@ bool Platform::initialize() {
|
||||
return false;
|
||||
}
|
||||
|
||||
auto &hwHelper = HwHelper::get(hwInfo->pPlatform->eRenderCoreFamily);
|
||||
auto enableLocalMemory = hwHelper.getEnableLocalMemory(*hwInfo);
|
||||
|
||||
executionEnvironment->initializeMemoryManager(Device::getEnabled64kbPages(*hwInfo), enableLocalMemory);
|
||||
|
||||
DEBUG_BREAK_IF(this->platformInfo);
|
||||
this->platformInfo.reset(new PlatformInfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user