mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
feature: Add support for legacy acronyms in ocloc's ids query
Expands support for deprecated acronyms to ids query. Additionally, this commit changes default devices for legacy acronyms. Related-To: NEO-10190 Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8217b76cef
commit
e053f3a839
@@ -423,9 +423,15 @@ int OfflineCompiler::queryAcronymIds(size_t numArgs, const std::vector<std::stri
|
||||
}
|
||||
}
|
||||
} else {
|
||||
helper->printf("Error: Invalid command line. Unknown acronym %s.\n", allArgs[2].c_str());
|
||||
retVal = OCLOC_INVALID_COMMAND_LINE;
|
||||
return retVal;
|
||||
auto hwInfoDepAcr = getHwInfoForDeprecatedAcronym(queryAcronym);
|
||||
if (nullptr != hwInfoDepAcr) {
|
||||
auto compilerProductHelper = NEO::CompilerProductHelper::create(hwInfoDepAcr->platform.eProductFamily);
|
||||
matchedVersions.push_back(ProductConfigHelper::parseMajorMinorRevisionValue(compilerProductHelper->getDefaultHwIpVersion()));
|
||||
} else {
|
||||
helper->printf("Error: Invalid command line. Unknown acronym %s.\n", allArgs[2].c_str());
|
||||
retVal = OCLOC_INVALID_COMMAND_LINE;
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
|
||||
std::ostringstream os;
|
||||
|
||||
Reference in New Issue
Block a user