feature: add support for ForceBcsEngineIndex flag

Related-To: NEO-8356

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2023-11-22 16:10:41 +00:00
committed by Compute-Runtime-Automation
parent 24a32b97c8
commit d9b3fd0623
2 changed files with 59 additions and 0 deletions

View File

@@ -1526,6 +1526,10 @@ ze_result_t DeviceImp::getCsrForOrdinalAndIndex(NEO::CommandStreamReceiver **csr
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
}
if ((NEO::DebugManager.flags.ForceBcsEngineIndex.get() != -1) && NEO::EngineHelper::isCopyOnlyEngineType(getEngineGroupTypeForOrdinal(ordinal))) {
index = static_cast<uint32_t>(NEO::DebugManager.flags.ForceBcsEngineIndex.get());
}
if (ordinal < numEngineGroups) {
auto &engines = engineGroups[ordinal].engines;
if (index >= engines.size()) {