mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Avoid adding subdevice flag if ReturnSubDevicesAsApiDevices is set
Related-To: LOCI-3656 Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ad072b4d5d
commit
522076cf82
@@ -34,7 +34,7 @@ void StandbyImp::init() {
|
||||
StandbyImp::StandbyImp(OsSysman *pOsSysman, ze_device_handle_t handle) : deviceHandle(handle) {
|
||||
uint32_t subdeviceId = 0;
|
||||
ze_bool_t onSubdevice = false;
|
||||
SysmanDeviceImp::getSysmanDeviceInfo(deviceHandle, subdeviceId, onSubdevice);
|
||||
SysmanDeviceImp::getSysmanDeviceInfo(deviceHandle, subdeviceId, onSubdevice, true);
|
||||
pOsStandby = OsStandby::create(pOsSysman, onSubdevice, subdeviceId);
|
||||
UNRECOVERABLE_IF(nullptr == pOsStandby);
|
||||
init();
|
||||
|
||||
Reference in New Issue
Block a user