mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
Resolves: NEO-3857 Change-Id: I216ef0cfc4ed7e1ab67261378905c6c0ec40a17f Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
31 lines
708 B
C++
31 lines
708 B
C++
/*
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/utilities/reference_tracked_object.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace NEO {
|
|
class MemoryManager;
|
|
struct RootDeviceEnvironment;
|
|
|
|
class ExecutionEnvironment : public ReferenceTrackedObject<ExecutionEnvironment> {
|
|
|
|
public:
|
|
ExecutionEnvironment();
|
|
~ExecutionEnvironment() override;
|
|
|
|
void initializeMemoryManager();
|
|
void calculateMaxOsContextCount();
|
|
void prepareRootDeviceEnvironments(uint32_t numRootDevices);
|
|
|
|
std::unique_ptr<MemoryManager> memoryManager;
|
|
std::vector<std::unique_ptr<RootDeviceEnvironment>> rootDeviceEnvironments;
|
|
};
|
|
} // namespace NEO
|