mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Add support for LKF in Product Config
Signed-off-by: Daria Hinz <daria.hinz@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
a7de1fb3c2
commit
9bc04dcd9f
@ -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"};
|
||||
|
@ -18,6 +18,7 @@ typedef enum {
|
||||
APL = 0x090300,
|
||||
GLK = 0x090400,
|
||||
ICL = 0x0b0000,
|
||||
LKF = 0x0b0100,
|
||||
JSL = 0x0b0200,
|
||||
EHL = 0x0b0200,
|
||||
DG1 = 0x0c0000,
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user