ULT renaming: Gen-specific Capabilities tests

Related-To: NEO-2236

Change-Id: Ibe9e5bdb2530db8a7992e9c7d8447e29af3ea242
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski
2020-10-20 14:08:39 +02:00
committed by sys_ocldev
parent 6cce17e9a0
commit 17db6d223e
6 changed files with 15 additions and 15 deletions

View File

@ -20,11 +20,11 @@ ICLLPTEST_F(IcllpTest, givenIclLpWhenCheckFtrSupportsInteger64BitAtomicsThenRetu
EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsInteger64BitAtomics);
}
ICLLPTEST_F(IcllpTest, shouldPassOnIcllp) {
ICLLPTEST_F(IcllpTest, WhenGettingPlatformFamilyThenIcelakeIsReported) {
EXPECT_EQ(IGFX_ICELAKE_LP, pDevice->getHardwareInfo().platform.eProductFamily);
}
ICLLPTEST_F(IcllpTest, lpSkusDontSupportFP64) {
ICLLPTEST_F(IcllpTest, WhenCheckingExtensionStringThenFp64IsNotSupported) {
const auto &caps = pClDevice->getDeviceInfo();
std::string extensionString = caps.deviceExtensions;
@ -32,12 +32,12 @@ ICLLPTEST_F(IcllpTest, lpSkusDontSupportFP64) {
EXPECT_EQ(0u, caps.doubleFpConfig);
}
ICLLPTEST_F(IcllpTest, lpSkusDontSupportCorrectlyRoundedDivideSqrt) {
ICLLPTEST_F(IcllpTest, WhenCheckingCapsThenCorrectlyRoundedDivideSqrtIsNotSupported) {
const auto &caps = pClDevice->getDeviceInfo();
EXPECT_EQ(0u, caps.singleFpConfig & CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT);
}
ICLLPTEST_F(IcllpTest, isSimulationCap) {
ICLLPTEST_F(IcllpTest, WhenCheckingSimulationCapThenResultIsCorrect) {
unsigned short iclLpSimulationIds[2] = {
IICL_LP_GT1_MOB_DEVICE_F0_ID,
0, // default, non-simulation

View File

@ -20,7 +20,7 @@ struct Gen11PlatformCaps : public PlatformFixture, public ::testing::Test {
}
};
GEN11TEST_F(Gen11PlatformCaps, lpSkusDontSupportFP64) {
GEN11TEST_F(Gen11PlatformCaps, WhenCheckingExtensionStringThenFp64IsNotSupported) {
const auto &caps = pPlatform->getPlatformInfo();
EXPECT_EQ(std::string::npos, caps.extensions.find(std::string("cl_khr_fp64")));

View File

@ -14,7 +14,7 @@ using namespace NEO;
typedef Test<ClDeviceFixture> Gen12LpDeviceCaps;
HWTEST2_F(Gen12LpDeviceCaps, lpSkusDontSupportFP64, IsTGLLP) {
HWTEST2_F(Gen12LpDeviceCaps, WhenCheckingExtensionStringThenFp64IsNotSupported, IsTGLLP) {
const auto &caps = pClDevice->getDeviceInfo();
std::string extensionString = caps.deviceExtensions;
@ -40,21 +40,21 @@ HWTEST2_F(Gen12LpDeviceCaps, givenGen12lpWhenCheckingCapsThenDeviceDoesNotSuppor
EXPECT_FALSE(caps.independentForwardProgress);
}
HWTEST2_F(Gen12LpDeviceCaps, allSkusSupportCorrectlyRoundedDivideSqrt, IsTGLLP) {
HWTEST2_F(Gen12LpDeviceCaps, WhenCheckingCapsThenCorrectlyRoundedDivideSqrtIsNotSupported, IsTGLLP) {
const auto &caps = pClDevice->getDeviceInfo();
EXPECT_EQ(0u, caps.singleFpConfig & CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT);
}
GEN12LPTEST_F(Gen12LpDeviceCaps, defaultPreemptionMode) {
GEN12LPTEST_F(Gen12LpDeviceCaps, GivenDefaultWhenCheckingPreemptionModeThenMidThreadIsReported) {
EXPECT_EQ(PreemptionMode::MidThread, pDevice->getHardwareInfo().capabilityTable.defaultPreemptionMode);
}
GEN12LPTEST_F(Gen12LpDeviceCaps, profilingTimerResolution) {
GEN12LPTEST_F(Gen12LpDeviceCaps, WhenCheckingCapsThenProfilingTimerResolutionIs83) {
const auto &caps = pClDevice->getSharedDeviceInfo();
EXPECT_EQ(83u, caps.outProfilingTimerResolution);
}
GEN12LPTEST_F(Gen12LpDeviceCaps, kmdNotifyMechanism) {
GEN12LPTEST_F(Gen12LpDeviceCaps, WhenCheckingCapsThenKmdNotifyMechanismIsCorrectlyReported) {
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);
EXPECT_EQ(0, pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayKmdNotifyMicroseconds);
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableQuickKmdSleep);
@ -63,7 +63,7 @@ GEN12LPTEST_F(Gen12LpDeviceCaps, kmdNotifyMechanism) {
EXPECT_EQ(0, pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayQuickKmdSleepForSporadicWaitsMicroseconds);
}
GEN12LPTEST_F(Gen12LpDeviceCaps, compression) {
GEN12LPTEST_F(Gen12LpDeviceCaps, WhenCheckingCapsThenCompressionIsDisabled) {
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrRenderCompressedBuffers);
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrRenderCompressedImages);
}
@ -108,7 +108,7 @@ GEN12LPTEST_F(Gen12LpDeviceCaps, givenGen12LpDeviceWhenCheckingPipesSupportThenF
using TglLpUsDeviceIdTest = Test<ClDeviceFixture>;
HWTEST2_F(TglLpUsDeviceIdTest, isSimulationCap, IsTGLLP) {
HWTEST2_F(TglLpUsDeviceIdTest, WhenCheckingSimulationCapThenResultIsCorrect, IsTGLLP) {
unsigned short tglLpSimulationIds[2] = {
DEV_ID_FF20,
0, // default, non-simulation

View File

@ -20,7 +20,7 @@ struct Gen12LpPlatformCaps : public PlatformFixture, public ::testing::Test {
}
};
HWTEST2_F(Gen12LpPlatformCaps, lpSkusDontSupportFP64, IsTGLLP) {
HWTEST2_F(Gen12LpPlatformCaps, WhenCheckingExtensionStringThenFp64IsNotSupported, IsTGLLP) {
const auto &caps = pPlatform->getPlatformInfo();
EXPECT_EQ(std::string::npos, caps.extensions.find(std::string("cl_khr_fp64")));

View File

@ -20,7 +20,7 @@ struct Gen8PlatformCaps : public PlatformFixture, public ::testing::Test {
}
};
BDWTEST_F(Gen8PlatformCaps, allBdwSkusSupportFP64) {
BDWTEST_F(Gen8PlatformCaps, WhenCheckingExtensionStringThenFp64IsSupported) {
const auto &caps = pPlatform->getPlatformInfo();
EXPECT_NE(std::string::npos, caps.extensions.find(std::string("cl_khr_fp64")));

View File

@ -21,7 +21,7 @@ struct Gen9PlatformCaps : public PlatformFixture, public ::testing::Test {
}
};
GEN9TEST_F(Gen9PlatformCaps, allSkusSupportFP64) {
GEN9TEST_F(Gen9PlatformCaps, GivenPlatformWhenCheckingExtensionStringThenFp64SupportIsCorrectlyReported) {
const auto &caps = pPlatform->getPlatformInfo();
if (pPlatform->getClDevice(0)->getHardwareInfo().capabilityTable.ftrSupportsFP64) {
EXPECT_NE(std::string::npos, caps.extensions.find(std::string("cl_khr_fp64")));