Add support for LKF in Product Config

Signed-off-by: Daria Hinz <daria.hinz@intel.com>
This commit is contained in:
Daria Hinz
2021-12-16 10:56:20 +00:00
committed by Compute-Runtime-Automation
parent a7de1fb3c2
commit 9bc04dcd9f
3 changed files with 20 additions and 0 deletions

View File

@ -78,6 +78,22 @@ TEST(OclocFatBinaryRequestedFatBinary, GivenDeviceArgToFatBinaryWhenConfigMatche
EXPECT_TRUE(NEO::requestedFatBinary(3, fewConfigs, argHelper.get()));
}
TEST(OclocFatBinaryProductConfigSupport, WhenPlatformIsSupportedThenAtLeastOneCorrespondingProductConfigExists) {
std::unique_ptr<OclocArgHelper> argHelper = std::make_unique<OclocArgHelper>();
auto allEnabledDeviceConfigs = argHelper->getAllSupportedDeviceConfigs();
auto allSuportedPlatforms = getAllSupportedTargetPlatforms();
for (auto &platform : allSuportedPlatforms) {
bool supportExist = false;
for (auto &config : allEnabledDeviceConfigs) {
if (config.hwInfo->platform.eProductFamily == platform) {
supportExist = true;
break;
}
}
EXPECT_TRUE(supportExist);
}
}
TEST(OclocFatBinaryRequestedFatBinary, WhenPlatformIsProvidedButDoesNotContainMoreThanOneProductThenReturnFalse) {
std::unique_ptr<OclocArgHelper> argHelper = std::make_unique<OclocArgHelper>();
const char *skl[] = {"ocloc", "-device", "skl"};

View File

@ -18,6 +18,7 @@ typedef enum {
APL = 0x090300,
GLK = 0x090400,
ICL = 0x0b0000,
LKF = 0x0b0100,
JSL = 0x0b0200,
EHL = 0x0b0200,
DG1 = 0x0c0000,

View File

@ -37,6 +37,9 @@ DEVICE_CONFIG(ICL, ICLLP_1x8x8)
#ifdef SUPPORT_EHL
DEVICE_CONFIG(EHL, EHL_HW_CONFIG)
#endif
#ifdef SUPPORT_LKF
DEVICE_CONFIG(LKF, LKF_1x8x8)
#endif
#endif
#ifdef SUPPORT_GEN9