refactor: remove ReturnSubDevicesAsApiDevices from shared code

Related-To: NEO-9437

Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
Baj, Tomasz
2023-11-08 12:55:37 +00:00
committed by Compute-Runtime-Automation
parent 12b4a9f71d
commit c49a9b9787
8 changed files with 6 additions and 111 deletions

View File

@@ -166,15 +166,8 @@ void ExecutionEnvironment::parseAffinityMask() {
return;
}
bool exposeSubDevicesAsApiDevices = false;
if (NEO::DebugManager.flags.ReturnSubDevicesAsApiDevices.get() != -1) {
exposeSubDevicesAsApiDevices = NEO::DebugManager.flags.ReturnSubDevicesAsApiDevices.get();
}
// If the user has requested FLAT device hierarchy models, then report all the sub devices as devices.
if (this->subDevicesAsDevices) {
exposeSubDevicesAsApiDevices = true;
}
bool exposeSubDevicesAsApiDevices = isExposingSubDevicesAsDevices();
uint32_t numRootDevices = static_cast<uint32_t>(rootDeviceEnvironments.size());
RootDeviceIndicesMap mapOfIndices;
@@ -213,7 +206,7 @@ void ExecutionEnvironment::parseAffinityMask() {
continue;
}
// ReturnSubDevicesAsApiDevices not supported with AllowSingleTileEngineInstancedSubDevices
// FlatHierarchy not supported with AllowSingleTileEngineInstancedSubDevices
// so ignore X.Y
if (subEntries.size() > 1) {
continue;
@@ -297,10 +290,6 @@ void ExecutionEnvironment::setDeviceHierarchy(const GfxCoreHelper &gfxCoreHelper
if (strcmp(hierarchyModel.c_str(), "COMBINED") == 0) {
setCombinedDeviceHierarchy(true);
}
if (NEO::DebugManager.flags.ReturnSubDevicesAsApiDevices.get() != -1) {
setExposeSubDevicesAsDevices(NEO::DebugManager.flags.ReturnSubDevicesAsApiDevices.get());
}
}
void ExecutionEnvironment::adjustCcsCountImpl(RootDeviceEnvironment *rootDeviceEnvironment) const {