mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Unify definition of hardware ip version
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
103f522f18
commit
23fd280334
@@ -164,7 +164,7 @@ bool OclocArgHelper::getHwInfoForProductConfig(uint32_t productConfig, NEO::Hard
|
||||
|
||||
const auto &deviceAotMap = productConfigHelper->getDeviceAotInfo();
|
||||
for (auto &deviceConfig : deviceAotMap) {
|
||||
if (deviceConfig.aotConfig.ProductConfig == productConfig) {
|
||||
if (deviceConfig.aotConfig.value == productConfig) {
|
||||
hwInfo = *deviceConfig.hwInfo;
|
||||
if (hwInfoConfig) {
|
||||
setHwInfoValuesFromConfig(hwInfoConfig, hwInfo);
|
||||
|
||||
@@ -86,8 +86,8 @@ void getProductsForRange(unsigned int productFrom, unsigned int productTo, std::
|
||||
auto &allSuppportedProducts = argHelper->productConfigHelper->getDeviceAotInfo();
|
||||
|
||||
for (const auto &device : allSuppportedProducts) {
|
||||
auto validAcronym = device.aotConfig.ProductConfig >= productFrom;
|
||||
validAcronym &= device.aotConfig.ProductConfig <= productTo;
|
||||
auto validAcronym = device.aotConfig.value >= productFrom;
|
||||
validAcronym &= device.aotConfig.value <= productTo;
|
||||
validAcronym &= !device.acronyms.empty();
|
||||
if (validAcronym) {
|
||||
out.push_back(device.acronyms.front());
|
||||
|
||||
@@ -170,7 +170,7 @@ int OfflineCompiler::queryAcronymIds(size_t numArgs, const std::vector<std::stri
|
||||
} else if (helper->productConfigHelper->isProductConfig(queryAcronym)) {
|
||||
auto product = ProductConfigHelper::getProductConfigForAcronym(queryAcronym);
|
||||
for (const auto &device : enabledDevices) {
|
||||
if (device.aotConfig.ProductConfig == product) {
|
||||
if (device.aotConfig.value == product) {
|
||||
matchedVersions.push_back(ProductConfigHelper::parseMajorMinorRevisionValue(device.aotConfig));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user