2019-08-27 15:34:20 +08:00
|
|
|
/*
|
2021-01-25 17:24:00 +08:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2019-08-27 15:34:20 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/device/device.h"
|
2019-08-27 15:34:20 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
class SubDevice;
|
|
|
|
|
|
|
|
class RootDevice : public Device {
|
|
|
|
public:
|
2019-10-24 19:34:25 +08:00
|
|
|
RootDevice(ExecutionEnvironment *executionEnvironment, uint32_t rootDeviceIndex);
|
2019-08-27 15:34:20 +08:00
|
|
|
~RootDevice() override;
|
2021-04-08 01:00:33 +08:00
|
|
|
|
|
|
|
Device *getRootDevice() const override;
|
|
|
|
bool isSubDevice() const override { return false; }
|
2019-08-27 15:34:20 +08:00
|
|
|
|
|
|
|
protected:
|
2019-10-07 18:42:28 +08:00
|
|
|
bool createEngines() override;
|
2021-04-22 22:28:27 +08:00
|
|
|
void createBindlessHeapsHelper() override;
|
2019-11-05 20:38:20 +08:00
|
|
|
|
2020-01-20 14:02:07 +08:00
|
|
|
void initializeRootCommandStreamReceiver();
|
2019-08-27 15:34:20 +08:00
|
|
|
};
|
|
|
|
} // namespace NEO
|