Files
compute-runtime/core/execution_environment/root_device_environment.h
Jablonski, Mateusz a5d348ec08 Stop using platformDevices to setup hw info on Linux
Related-To: NEO-4207
Change-Id: I9c0eeea20342d26be99a7a0035b2b85edd5d8abd
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2020-02-03 15:02:29 +01:00

39 lines
1.0 KiB
C++

/*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "core/helpers/options.h"
#include <cstdint>
#include <memory>
#include <string>
namespace NEO {
class AubCenter;
class ExecutionEnvironment;
class GmmPageTableMngr;
class MemoryOperationsHandler;
class OSInterface;
struct HardwareInfo;
struct RootDeviceEnvironment {
RootDeviceEnvironment(ExecutionEnvironment &executionEnvironment);
RootDeviceEnvironment(RootDeviceEnvironment &) = delete;
MOCKABLE_VIRTUAL ~RootDeviceEnvironment();
const HardwareInfo *getHardwareInfo() const;
MOCKABLE_VIRTUAL void initAubCenter(bool localMemoryEnabled, const std::string &aubFileName, CommandStreamReceiverType csrType);
std::unique_ptr<OSInterface> osInterface;
std::unique_ptr<GmmPageTableMngr> pageTableManager;
std::unique_ptr<MemoryOperationsHandler> memoryOperationsInterface;
std::unique_ptr<AubCenter> aubCenter;
ExecutionEnvironment &executionEnvironment;
};
} // namespace NEO