fix: Taking into account variable ReturnSubDevicesAsApiDevices

Taking into account variable ReturnSubDevicesAsApiDevices
during Retain and Release Device

Related-To: NEO-8161

Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
This commit is contained in:
Andrzej Koska
2023-08-11 11:00:22 +00:00
committed by Compute-Runtime-Automation
parent 81d037f59b
commit 0a3b135673
5 changed files with 73 additions and 2 deletions

View File

@@ -330,6 +330,10 @@ void ExecutionEnvironment::configureNeoEnvironment() {
if (strcmp(hierarchyModel.c_str(), "FLAT") == 0) {
setExposeSubDevicesAsDevices(true);
}
if (NEO::DebugManager.flags.ReturnSubDevicesAsApiDevices.get() == 1) {
setExposeSubDevicesAsDevices(true);
}
}
bool ExecutionEnvironment::comparePciIdBusNumber(std::unique_ptr<RootDeviceEnvironment> &rootDeviceEnvironment1, std::unique_ptr<RootDeviceEnvironment> &rootDeviceEnvironment2) {