mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Engine instanced SubDevices [1/n]
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
576ac8459f
commit
dfb935fdcf
@@ -13,6 +13,7 @@ class RootDevice;
|
||||
class SubDevice : public Device {
|
||||
public:
|
||||
SubDevice(ExecutionEnvironment *executionEnvironment, uint32_t subDeviceIndex, Device &rootDevice);
|
||||
SubDevice(ExecutionEnvironment *executionEnvironment, uint32_t subDeviceIndex, Device &rootDevice, aub_stream::EngineType engineType);
|
||||
void incRefInternal() override;
|
||||
unique_ptr_if_unused<Device> decRefInternal() override;
|
||||
|
||||
@@ -25,8 +26,12 @@ class SubDevice : public Device {
|
||||
|
||||
protected:
|
||||
uint64_t getGlobalMemorySize(uint32_t deviceBitfield) const override;
|
||||
bool subDevicesAllowed() const override { return false; };
|
||||
const uint32_t subDeviceIndex;
|
||||
bool genericSubDevicesAllowed() override { return false; };
|
||||
bool engineInstancedSubDevicesAllowed() const override { return false; };
|
||||
|
||||
RootDevice &rootDevice;
|
||||
const uint32_t subDeviceIndex;
|
||||
aub_stream::EngineType engineType = aub_stream::EngineType::NUM_ENGINES;
|
||||
bool engineInstanced = false;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user