mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 08:37:12 +08:00
Move types defined by using to separated header file Related-To: NEO-3691 Change-Id: I71dfca0644b7022c4a381fbe396d0e32ca7d1ce5 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
31 lines
708 B
C++
31 lines
708 B
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/device/device.h"
|
|
|
|
namespace NEO {
|
|
|
|
class SubDevice;
|
|
|
|
class RootDevice : public Device {
|
|
public:
|
|
RootDevice(ExecutionEnvironment *executionEnvironment, uint32_t deviceIndex);
|
|
~RootDevice() override;
|
|
bool createDeviceImpl() override;
|
|
uint32_t getNumSubDevices() const;
|
|
|
|
/* We hide the retain and release function of BaseObject. */
|
|
void retain() override;
|
|
unique_ptr_if_unused<Device> release() override;
|
|
|
|
protected:
|
|
DeviceBitfield getDeviceBitfieldForOsContext() const override;
|
|
std::vector<std::unique_ptr<SubDevice>> subdevices;
|
|
};
|
|
} // namespace NEO
|