feature: Add default ip version values to helper

Signed-off-by: Daria Hinz <daria.hinz@intel.com>
Related-To: NEO-8021
This commit is contained in:
Daria Hinz
2023-05-31 11:29:22 +00:00
committed by Compute-Runtime-Automation
parent cf5100c134
commit 68b6cfebd2
36 changed files with 251 additions and 92 deletions

View File

@@ -107,7 +107,13 @@ CFLTEST_F(CflProductHelper, givenCompilerProductHelperWhenGetProductConfigThenCo
}
pInHwInfo.platform.usDeviceID = 0u;
EXPECT_EQ(compilerProductHelper->getHwIpVersion(pInHwInfo), AOT::UNKNOWN_ISA);
EXPECT_EQ(compilerProductHelper->getHwIpVersion(pInHwInfo), AOT::CFL);
}
CFLTEST_F(CflProductHelper, givenCompilerProductHelperWhenGetIpVersionAndDeviceIdIsUnknownThenDefaultConfigIsReturned) {
pInHwInfo.platform.usDeviceID = 0u;
EXPECT_EQ(compilerProductHelper->getHwIpVersion(pInHwInfo), AOT::CFL);
EXPECT_EQ(compilerProductHelper->getDefaultHwIpVersion(), AOT::CFL);
}
CFLTEST_F(CflProductHelper, givenProductHelperWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {

View File

@@ -110,9 +110,12 @@ KBLTEST_F(KblProductHelper, givenCompilerProductHelperWhenGetProductConfigThenCo
pInHwInfo.platform.usDeviceID = deviceId;
EXPECT_EQ(compilerProductHelper->getHwIpVersion(pInHwInfo), AOT::KBL);
}
}
KBLTEST_F(KblProductHelper, givenCompilerProductHelperWhenGetIpVersionAndDeviceIdIsUnknownThenDefaultConfigIsReturned) {
pInHwInfo.platform.usDeviceID = 0u;
EXPECT_EQ(compilerProductHelper->getHwIpVersion(pInHwInfo), AOT::UNKNOWN_ISA);
EXPECT_EQ(compilerProductHelper->getHwIpVersion(pInHwInfo), AOT::KBL);
EXPECT_EQ(compilerProductHelper->getDefaultHwIpVersion(), AOT::KBL);
}
KBLTEST_F(KblProductHelper, givenProductHelperWhenGettingEvictIfNecessaryFlagSupportedThenExpectTrue) {