mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 20:13:04 +08:00
Add getter for sub device index
Related-To: NEO-3691 Change-Id: I1375b3b422997d280e2006b00af8f6fab2314f8b Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1bfe9f548e
commit
d617219665
@@ -38,6 +38,10 @@ uint32_t SubDevice::getNumAvailableDevices() const {
|
||||
uint32_t SubDevice::getRootDeviceIndex() const {
|
||||
return this->rootDevice.getRootDeviceIndex();
|
||||
}
|
||||
|
||||
uint32_t SubDevice::getSubDeviceIndex() const {
|
||||
return subDeviceIndex;
|
||||
}
|
||||
Device *SubDevice::getDeviceById(uint32_t deviceId) const {
|
||||
UNRECOVERABLE_IF(deviceId >= getNumAvailableDevices());
|
||||
return const_cast<SubDevice *>(this);
|
||||
|
||||
Reference in New Issue
Block a user