mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
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:
committed by
Compute-Runtime-Automation
parent
cf5100c134
commit
68b6cfebd2
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user