mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
Improve getDevice methods
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a9226a9113
commit
cb91474b1a
@@ -696,7 +696,7 @@ Device *Device::create(DriverHandle *driverHandle, NEO::Device *neoDevice, uint3
|
||||
}
|
||||
|
||||
ze_device_handle_t subDevice = Device::create(driverHandle,
|
||||
device->neoDevice->getDeviceById(i),
|
||||
device->neoDevice->getSubDevice(i),
|
||||
0,
|
||||
true, returnValue);
|
||||
if (subDevice == nullptr) {
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace L0 {
|
||||
|
||||
NEO::Device *DeviceImp::getActiveDevice() const {
|
||||
if (isMultiDeviceCapable()) {
|
||||
return this->neoDevice->getDeviceById(0);
|
||||
return this->neoDevice->getThisOrNextNonRootCsrDevice(0);
|
||||
}
|
||||
return this->neoDevice;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user