mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 18:37:46 +08:00
Change-Id: Iaec903af420f0a92f7d86e484c83300fb9c531ad Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
30 lines
1006 B
C++
30 lines
1006 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "execution_environment/root_device_environment.h"
|
|
|
|
#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"
|
|
#include "opencl/source/aub/aub_center.h"
|
|
|
|
namespace NEO {
|
|
|
|
RootDeviceEnvironment::RootDeviceEnvironment(ExecutionEnvironment &executionEnvironment) : executionEnvironment(executionEnvironment) {}
|
|
RootDeviceEnvironment::~RootDeviceEnvironment() = default;
|
|
|
|
void RootDeviceEnvironment::initAubCenter(bool localMemoryEnabled, const std::string &aubFileName, CommandStreamReceiverType csrType) {
|
|
if (!aubCenter) {
|
|
aubCenter.reset(new AubCenter(getHardwareInfo(), localMemoryEnabled, aubFileName, csrType));
|
|
}
|
|
}
|
|
const HardwareInfo *RootDeviceEnvironment::getHardwareInfo() const {
|
|
return executionEnvironment.getHardwareInfo();
|
|
}
|
|
} // namespace NEO
|