mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
fix(ocloc): fallback to deprecated acronyms
When revision_id argument is passed fallback to using initHardwareInfoForDeprecatedAcronyms. * initHardwareInfoForProductConfig returns INVALID_DEVICE if device acronym and revision id is passed. * initHardwareInfoForDeprecatedAcronyms sets aot config revision to revisionId. Resolves: NEO-7738 Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b32a937aa0
commit
9f7f2318bd
@@ -435,6 +435,7 @@ int OfflineCompiler::initHardwareInfoForDeprecatedAcronyms(std::string deviceNam
|
||||
hwInfo = *hardwareInfoTable[product];
|
||||
if (revisionId != -1) {
|
||||
hwInfo.platform.usRevId = revisionId;
|
||||
hwInfo.ipVersion.revision = revisionId;
|
||||
}
|
||||
compilerProductHelper = NEO::CompilerProductHelper::create(hwInfo.platform.eProductFamily);
|
||||
uint64_t config = hwInfoConfig ? hwInfoConfig : compilerProductHelper->getHwInfoConfig(hwInfo);
|
||||
@@ -463,7 +464,7 @@ int OfflineCompiler::initHardwareInfoForProductConfig(std::string deviceName) {
|
||||
} else if (isArgumentDeviceId(deviceName)) {
|
||||
deviceID = std::stoi(deviceName, 0, 16);
|
||||
productConfig = argHelper->productConfigHelper->getProductConfigForDeviceId(deviceID);
|
||||
} else if (argHelper->productConfigHelper->isProductConfig(deviceName)) {
|
||||
} else if (argHelper->productConfigHelper->isProductConfig(deviceName) && (revisionId == -1)) {
|
||||
productConfig = ProductConfigHelper::getProductConfigForAcronym(deviceName);
|
||||
} else {
|
||||
return INVALID_DEVICE;
|
||||
|
||||
Reference in New Issue
Block a user