mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: Unification of aot config with hw ip version
In the case of mtl+ platforms, the returned config value should equal the hardware ip version value. This change fixes situations where some config has not been added and in this case we returned an unknown value. Signed-off-by: Daria Hinz <daria.hinz@intel.com> Related-To: NEO-7738
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6fa8682c96
commit
c3f4074f0a
@@ -868,7 +868,7 @@ ze_result_t DeviceImp::getProperties(ze_device_properties_t *pDeviceProperties)
|
||||
ze_device_ip_version_ext_t *zeDeviceIpVersion = reinterpret_cast<ze_device_ip_version_ext_t *>(extendedProperties);
|
||||
NEO::Device *activeDevice = getActiveDevice();
|
||||
auto &productHelper = activeDevice->getProductHelper();
|
||||
zeDeviceIpVersion->ipVersion = static_cast<uint32_t>(productHelper.getProductConfigFromHwInfo(hardwareInfo));
|
||||
zeDeviceIpVersion->ipVersion = productHelper.getProductConfigFromHwInfo(hardwareInfo);
|
||||
}
|
||||
extendedProperties = static_cast<ze_base_properties_t *>(extendedProperties->pNext);
|
||||
}
|
||||
|
||||
@@ -1255,7 +1255,7 @@ TEST_F(DeviceTest, givenDeviceIpVersionWhenGetDevicePropertiesThenCorrectResultI
|
||||
deviceProperties.pNext = &zeDeviceIpVersion;
|
||||
|
||||
auto &productHelper = device->getProductHelper();
|
||||
auto expectedIpVersion = static_cast<uint32_t>(productHelper.getProductConfigFromHwInfo(device->getHwInfo()));
|
||||
auto expectedIpVersion = productHelper.getProductConfigFromHwInfo(device->getHwInfo());
|
||||
|
||||
device->getProperties(&deviceProperties);
|
||||
EXPECT_NE(std::numeric_limits<uint32_t>::max(), zeDeviceIpVersion.ipVersion);
|
||||
|
||||
Reference in New Issue
Block a user