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