Skip to content

Commit 2eea76e

Browse files
ULT renaming: Gen-specific Device Capabilities tests
Related-To: NEO-2236 Change-Id: Ie499506585f929e73547e8f3f39aea2a16a77c48 Signed-off-by: Adam Cetnerowski <[email protected]>
1 parent b0e055e commit 2eea76e

14 files changed

+33
-33
lines changed

opencl/test/unit_test/gen11/lkf/test_device_caps_lkf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ LKFTEST_F(LkfTest, givenLkfWhenSlmSizeIsRequiredThenReturnCorrectValue) {
1616
EXPECT_EQ(64u, pDevice->getHardwareInfo().capabilityTable.slmSize);
1717
}
1818

19-
LKFTEST_F(LkfTest, givenLKFWhenCheckedSvmSupportThenNoSvmIsReported) {
19+
LKFTEST_F(LkfTest, givenLkfWhenCheckedSvmSupportThenNoSvmIsReported) {
2020
const auto &caps = pClDevice->getDeviceInfo();
2121
EXPECT_EQ(caps.svmCapabilities, 0u);
2222
}
@@ -34,7 +34,7 @@ LKFTEST_F(LkfTest, givenLkfWhenExtensionStringIsCheckedThenFP64IsNotReported) {
3434
EXPECT_EQ(0u, caps.doubleFpConfig);
3535
}
3636

37-
LKFTEST_F(LkfTest, isSimulationCap) {
37+
LKFTEST_F(LkfTest, WhenCheckingIsSimulationThenTrueReturnedOnlyForSimulationId) {
3838
unsigned short lkfSimulationIds[2] = {
3939
ILKF_1x8x8_DESK_DEVICE_F0_ID,
4040
0, // default, non-simulation

opencl/test/unit_test/gen11/test_device_caps_gen11.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ using namespace NEO;
1414

1515
typedef Test<ClDeviceFixture> Gen11DeviceCaps;
1616

17-
GEN11TEST_F(Gen11DeviceCaps, defaultPreemptionMode) {
17+
GEN11TEST_F(Gen11DeviceCaps, GivenDefaultWhenCheckingPreemptionModeThenMidThreadIsReturned) {
1818
EXPECT_TRUE(PreemptionMode::MidThread == pDevice->getHardwareInfo().capabilityTable.defaultPreemptionMode);
1919
}
2020

21-
GEN11TEST_F(Gen11DeviceCaps, profilingTimerResolution) {
21+
GEN11TEST_F(Gen11DeviceCaps, WhenCheckingProfilingTimerResolutionThenCorrectResolutionIsReturned) {
2222
const auto &caps = pDevice->getDeviceInfo();
2323
EXPECT_EQ(83u, caps.outProfilingTimerResolution);
2424
}
2525

26-
GEN11TEST_F(Gen11DeviceCaps, kmdNotifyMechanism) {
26+
GEN11TEST_F(Gen11DeviceCaps, GivenWhenGettingKmdNotifyPropertiesThenItIsDisabled) {
2727
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);
2828
EXPECT_EQ(0, pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayKmdNotifyMicroseconds);
2929
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableQuickKmdSleep);
@@ -32,7 +32,7 @@ GEN11TEST_F(Gen11DeviceCaps, kmdNotifyMechanism) {
3232
EXPECT_EQ(0, pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayQuickKmdSleepForSporadicWaitsMicroseconds);
3333
}
3434

35-
GEN11TEST_F(Gen11DeviceCaps, compression) {
35+
GEN11TEST_F(Gen11DeviceCaps, WhenCheckingCompressionThenItIsDisabled) {
3636
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrRenderCompressedBuffers);
3737
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrRenderCompressedImages);
3838
}

opencl/test/unit_test/gen12lp/adls/test_device_caps_adls.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using namespace NEO;
1313

1414
using AdlsUsDeviceIdTest = Test<ClDeviceFixture>;
1515

16-
ADLSTEST_F(AdlsUsDeviceIdTest, isSimulationCap) {
16+
ADLSTEST_F(AdlsUsDeviceIdTest, WhenCheckingIsSimulationThenTrueReturnedOnlyForSimulationId) {
1717
unsigned short adlsSimulationIds[2] = {
1818
DEVICE_ID_4680,
1919
0, // default, non-simulation
@@ -32,7 +32,7 @@ ADLSTEST_F(AdlsUsDeviceIdTest, isSimulationCap) {
3232
}
3333
}
3434

35-
ADLSTEST_F(AdlsUsDeviceIdTest, givenADLSWhenCheckFtrSupportsInteger64BitAtomicsThenReturnFalse) {
35+
ADLSTEST_F(AdlsUsDeviceIdTest, givenAdlsWhenCheckFtrSupportsInteger64BitAtomicsThenReturnFalse) {
3636
EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsInteger64BitAtomics);
3737
}
3838

opencl/test/unit_test/gen8/bdw/test_device_caps_bdw.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ using namespace NEO;
1414

1515
typedef Test<ClDeviceFixture> BdwDeviceCaps;
1616

17-
BDWTEST_F(BdwDeviceCaps, skuSpecificCaps) {
17+
BDWTEST_F(BdwDeviceCaps, WhenCheckingExtensionStringThenFp64IsSupported) {
1818
const auto &caps = pClDevice->getDeviceInfo();
1919
std::string extensionString = caps.deviceExtensions;
2020

2121
EXPECT_NE(std::string::npos, extensionString.find(std::string("cl_khr_fp64")));
2222
EXPECT_NE(0u, caps.doubleFpConfig);
2323
}
2424

25-
BDWTEST_F(BdwDeviceCaps, allSkusSupportCorrectlyRoundedDivideSqrt) {
25+
BDWTEST_F(BdwDeviceCaps, WhenGettingDeviceInfoThenCorrectlyRoundedDivideSqrtIsEnabled) {
2626
const auto &caps = pClDevice->getDeviceInfo();
2727
EXPECT_NE(0u, caps.singleFpConfig & CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT);
2828
}
2929

30-
BDWTEST_F(BdwDeviceCaps, defaultPreemptionMode) {
30+
BDWTEST_F(BdwDeviceCaps, GivenDefaultWhenCheckingPreemptionModeThenDisabledIsReported) {
3131
EXPECT_TRUE(PreemptionMode::Disabled == pDevice->getHardwareInfo().capabilityTable.defaultPreemptionMode);
3232
}
3333

@@ -55,7 +55,7 @@ BDWTEST_F(BdwDeviceCaps, givenHwInfoWhenRequestedMaxFrontEndThreadsThenReturnVal
5555

5656
typedef Test<ClDeviceFixture> BdwUsDeviceIdTest;
5757

58-
BDWTEST_F(BdwUsDeviceIdTest, isSimulationCap) {
58+
BDWTEST_F(BdwUsDeviceIdTest, WhenCheckingIsSimulationThenTrueReturnedOnlyForSimulationId) {
5959
unsigned short bdwSimulationIds[6] = {
6060
IBDW_GT0_DESK_DEVICE_F0_ID,
6161
IBDW_GT1_DESK_DEVICE_F0_ID,
@@ -78,6 +78,6 @@ BDWTEST_F(BdwUsDeviceIdTest, isSimulationCap) {
7878
}
7979
}
8080

81-
BDWTEST_F(BdwUsDeviceIdTest, GivenBDWWhenCheckftr64KBpagesThenFalse) {
81+
BDWTEST_F(BdwUsDeviceIdTest, GivenBdwWhenCheckftr64KBpagesThenFalse) {
8282
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftr64KBpages);
8383
}

opencl/test/unit_test/gen8/bdw/windows/test_device_caps_bdw_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using namespace NEO;
1414

1515
typedef Test<ClDeviceFixture> BdwDeviceCaps;
1616

17-
BDWTEST_F(BdwDeviceCaps, kmdNotifyMechanism) {
17+
BDWTEST_F(BdwDeviceCaps, WhenCheckingKmdNotifyPropertiesThenKmdNotifyIsEnabledCorrectly) {
1818
EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);
1919
EXPECT_EQ(50000, pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayKmdNotifyMicroseconds);
2020
EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableQuickKmdSleep);

opencl/test/unit_test/gen9/bxt/test_device_caps_bxt.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using namespace NEO;
1212

1313
typedef Test<ClDeviceFixture> BxtDeviceCaps;
1414

15-
BXTTEST_F(BxtDeviceCaps, BxtProfilingTimerResolution) {
15+
BXTTEST_F(BxtDeviceCaps, WhenCheckingProfilingTimerResolutionThenCorrectResolutionIsReturned) {
1616
const auto &caps = pDevice->getDeviceInfo();
1717
EXPECT_EQ(52u, caps.outProfilingTimerResolution);
1818
}
@@ -29,22 +29,22 @@ BXTTEST_F(BxtDeviceCaps, givenBxtDeviceWhenAskedFor32BitSupportThenCorrectValues
2929
}
3030
}
3131

32-
BXTTEST_F(BxtDeviceCaps, BxtSvmCapabilities) {
32+
BXTTEST_F(BxtDeviceCaps, WhenCheckingCapabilitiesThenSvmIsNotSupported) {
3333
const auto &caps = pClDevice->getDeviceInfo();
3434
EXPECT_EQ(0u, caps.svmCapabilities);
3535
}
3636

37-
BXTTEST_F(BxtDeviceCaps, GivenBXTWhenCheckftr64KBpagesThenFalse) {
37+
BXTTEST_F(BxtDeviceCaps, WhenCheckftr64KBpagesThenFalse) {
3838
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftr64KBpages);
3939
}
4040

41-
BXTTEST_F(BxtDeviceCaps, givenBXTWhenCheckFtrSupportsInteger64BitAtomicsThenReturnFalse) {
41+
BXTTEST_F(BxtDeviceCaps, WhenCheckFtrSupportsInteger64BitAtomicsThenReturnFalse) {
4242
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.ftrSupportsInteger64BitAtomics);
4343
}
4444

4545
typedef Test<ClDeviceFixture> BxtUsDeviceIdTest;
4646

47-
BXTTEST_F(BxtUsDeviceIdTest, isSimulationCap) {
47+
BXTTEST_F(BxtUsDeviceIdTest, WhenCheckingIsSimulationThenTrueReturnedOnlyForSimulationId) {
4848
unsigned short bxtSimulationIds[3] = {
4949
IBXT_A_DEVICE_F0_ID,
5050
IBXT_C_DEVICE_F0_ID,

opencl/test/unit_test/gen9/bxt/windows/test_device_caps_bxt_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using namespace NEO;
1212

1313
typedef Test<ClDeviceFixture> BxtDeviceCapsWindows;
1414

15-
BXTTEST_F(BxtDeviceCapsWindows, givenHwInfoWhenAskedForKmdNotifyMechanismThenReturnCorrectValues) {
15+
BXTTEST_F(BxtDeviceCapsWindows, GivenWhenGettingKmdNotifyPropertiesThenItIsDisabled) {
1616
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);
1717
EXPECT_EQ(0, pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayKmdNotifyMicroseconds);
1818
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableQuickKmdSleep);

opencl/test/unit_test/gen9/cfl/windows/test_device_caps_cfl_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using namespace NEO;
1212

1313
typedef Test<ClDeviceFixture> CflDeviceCapsWindows;
1414

15-
CFLTEST_F(CflDeviceCapsWindows, givenHwInfoWhenAskedForKmdNotifyMechanismThenReturnCorrectValues) {
15+
CFLTEST_F(CflDeviceCapsWindows, GivenWhenGettingKmdNotifyPropertiesThenItIsDisabled) {
1616
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);
1717
EXPECT_EQ(0, pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayKmdNotifyMicroseconds);
1818
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableQuickKmdSleep);

opencl/test/unit_test/gen9/glk/test_device_caps_glk.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using namespace NEO;
1212

1313
typedef Test<ClDeviceFixture> Gen9DeviceCaps;
1414

15-
GLKTEST_F(Gen9DeviceCaps, GlkProfilingTimerResolution) {
15+
GLKTEST_F(Gen9DeviceCaps, WhenCheckingProfilingTimerResolutionThenCorrectResolutionIsReturned) {
1616
const auto &caps = pDevice->getDeviceInfo();
1717
EXPECT_EQ(52u, caps.outProfilingTimerResolution);
1818
}
@@ -35,7 +35,7 @@ GLKTEST_F(Gen9DeviceCaps, GlkIs32BitOsAllocatorAvailable) {
3535

3636
typedef Test<ClDeviceFixture> GlkUsDeviceIdTest;
3737

38-
GLKTEST_F(GlkUsDeviceIdTest, isSimulationCap) {
38+
GLKTEST_F(GlkUsDeviceIdTest, WhenCheckingIsSimulationThenTrueReturnedOnlyForSimulationId) {
3939
unsigned short glkSimulationIds[3] = {
4040
IGLK_GT2_ULT_18EU_DEVICE_F0_ID,
4141
IGLK_GT2_ULT_12EU_DEVICE_F0_ID,

opencl/test/unit_test/gen9/glk/windows/test_device_caps_glk_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using namespace NEO;
1212

1313
typedef Test<ClDeviceFixture> GlkDeviceCapsWindows;
1414

15-
GLKTEST_F(GlkDeviceCapsWindows, givenHwInfoWhenAskedForKmdNotifyMechanismThenReturnCorrectValues) {
15+
GLKTEST_F(GlkDeviceCapsWindows, WhenCheckingKmdNotifyPropertiesThenKmdNotifyIsEnabledCorrectly) {
1616
EXPECT_TRUE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableKmdNotify);
1717
EXPECT_EQ(30000, pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.delayKmdNotifyMicroseconds);
1818
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.kmdNotifyProperties.enableQuickKmdSleep);

0 commit comments

Comments
 (0)