2019-10-24 13:34:25 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2019 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "core/execution_environment/root_device_environment.h"
|
|
|
|
|
|
|
|
|
|
#include "runtime/aub/aub_center.h"
|
2019-11-15 09:59:48 +01:00
|
|
|
#include "runtime/execution_environment/execution_environment.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) {
|
|
|
|
|
aubCenter.reset(new AubCenter(executionEnvironment.getHardwareInfo(), localMemoryEnabled, aubFileName, csrType));
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-10-24 13:34:25 +02:00
|
|
|
} // namespace NEO
|