mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
refactor: remove ReturnSubDevicesAsApiDevices from shared code
Related-To: NEO-9437 Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
12b4a9f71d
commit
c49a9b9787
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user