2019-10-24 13:34:25 +02:00
|
|
|
/*
|
2019-12-30 14:40:24 +01:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-10-24 13:34:25 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-23 18:46:50 +01:00
|
|
|
#include "execution_environment/root_device_environment.h"
|
2019-10-24 13:34:25 +02:00
|
|
|
|
2020-02-23 18:46:50 +01:00
|
|
|
#include "execution_environment/execution_environment.h"
|
|
|
|
|
#include "gmm_helper/page_table_mngr.h"
|
|
|
|
|
#include "memory_manager/memory_operations_handler.h"
|
|
|
|
|
#include "os_interface/os_interface.h"
|
2020-02-22 22:50:57 +01:00
|
|
|
#include "opencl/source/aub/aub_center.h"
|
2019-10-24 13:34:25 +02:00
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
2019-11-15 09:59:48 +01:00
|
|
|
RootDeviceEnvironment::RootDeviceEnvironment(ExecutionEnvironment &executionEnvironment) : executionEnvironment(executionEnvironment) {}
|
2019-10-24 13:34:25 +02:00
|
|
|
RootDeviceEnvironment::~RootDeviceEnvironment() = default;
|
2019-11-15 09:59:48 +01:00
|
|
|
|
|
|
|
|
void RootDeviceEnvironment::initAubCenter(bool localMemoryEnabled, const std::string &aubFileName, CommandStreamReceiverType csrType) {
|
|
|
|
|
if (!aubCenter) {
|
2020-02-12 11:27:28 +01:00
|
|
|
aubCenter.reset(new AubCenter(getHardwareInfo(), localMemoryEnabled, aubFileName, csrType));
|
2019-11-15 09:59:48 +01:00
|
|
|
}
|
|
|
|
|
}
|
2020-01-30 15:04:19 +01:00
|
|
|
const HardwareInfo *RootDeviceEnvironment::getHardwareInfo() const {
|
|
|
|
|
return executionEnvironment.getHardwareInfo();
|
|
|
|
|
}
|
2019-10-24 13:34:25 +02:00
|
|
|
} // namespace NEO
|