diff --git a/level_zero/core/source/device/device_imp.cpp b/level_zero/core/source/device/device_imp.cpp index ba33912e4c..18a112d879 100644 --- a/level_zero/core/source/device/device_imp.cpp +++ b/level_zero/core/source/device/device_imp.cpp @@ -744,19 +744,6 @@ ze_result_t DeviceImp::getProperties(ze_device_properties_t *pDeviceProperties) } } - if (pDeviceProperties->pNext) { - ze_base_desc_t *extendedDesc = reinterpret_cast(pDeviceProperties->pNext); - if (extendedDesc->stype == ZE_STRUCTURE_TYPE_EU_COUNT_EXT) { - ze_eu_count_ext_t *zeEuCountDesc = reinterpret_cast(extendedDesc); - uint32_t numTotalEUs = hardwareInfo.gtSystemInfo.MaxEuPerSubSlice * hardwareInfo.gtSystemInfo.SubSliceCount * hardwareInfo.gtSystemInfo.SliceCount; - - if (isImplicitScalingCapable()) { - numTotalEUs *= neoDevice->getNumGenericSubDevices(); - } - zeEuCountDesc->numTotalEUs = numTotalEUs; - } - } - return ZE_RESULT_SUCCESS; } diff --git a/level_zero/core/test/unit_tests/sources/device/test_device.cpp b/level_zero/core/test/unit_tests/sources/device/test_device.cpp index d64352a2ab..db869beebb 100644 --- a/level_zero/core/test/unit_tests/sources/device/test_device.cpp +++ b/level_zero/core/test/unit_tests/sources/device/test_device.cpp @@ -1078,34 +1078,6 @@ TEST_F(DeviceTest, givenDevicePropertiesStructureWhenDebugVariableOverrideDevice EXPECT_STREQ(deviceProperties.name, testDeviceName.c_str()); } -TEST_F(DeviceTest, WhenRequestingZeEuCountThenExpectedEUsAreReturned) { - ze_device_properties_t deviceProperties = {ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES}; - ze_eu_count_ext_t zeEuCountDesc = {ZE_STRUCTURE_TYPE_EU_COUNT_EXT}; - deviceProperties.pNext = &zeEuCountDesc; - - uint32_t maxEuPerSubSlice = 48; - uint32_t subSliceCount = 8; - uint32_t sliceCount = 1; - - device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->gtSystemInfo.MaxEuPerSubSlice = maxEuPerSubSlice; - device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->gtSystemInfo.SubSliceCount = subSliceCount; - device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->gtSystemInfo.SliceCount = sliceCount; - - device->getProperties(&deviceProperties); - - uint32_t expectedEUs = maxEuPerSubSlice * subSliceCount * sliceCount; - - EXPECT_EQ(expectedEUs, zeEuCountDesc.numTotalEUs); -} - -TEST_F(DeviceTest, WhenRequestingZeEuCountWithIncorrectStypeThenPNextIsIgnored) { - ze_device_properties_t deviceProperties = {ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES}; - ze_eu_count_ext_t zeEuCountDesc = {ZE_STRUCTURE_TYPE_SCHEDULING_HINT_EXP_PROPERTIES}; - deviceProperties.pNext = &zeEuCountDesc; - device->getProperties(&deviceProperties); - EXPECT_EQ(0u, zeEuCountDesc.numTotalEUs); -} - TEST_F(DeviceTest, WhenGettingDevicePropertiesThenSubslicesPerSliceIsBasedOnSubslicesSupported) { ze_device_properties_t deviceProperties = {ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES}; deviceProperties.type = ZE_DEVICE_TYPE_GPU; @@ -1963,27 +1935,6 @@ TEST_F(MultipleDevicesDisabledImplicitScalingTest, whenCallingGetMemoryPropertie EXPECT_EQ(memProperties.totalSize, device0->getNEODevice()->getDeviceInfo().globalMemSize / numSubDevices); } -TEST_F(MultipleDevicesEnabledImplicitScalingTest, WhenRequestingZeEuCountThenExpectedEUsAreReturned) { - ze_device_properties_t deviceProperties = {ZE_STRUCTURE_TYPE_DEVICE_PROPERTIES}; - ze_eu_count_ext_t zeEuCountDesc = {ZE_STRUCTURE_TYPE_EU_COUNT_EXT}; - deviceProperties.pNext = &zeEuCountDesc; - - uint32_t maxEuPerSubSlice = 48; - uint32_t subSliceCount = 8; - uint32_t sliceCount = 1; - - L0::Device *device = driverHandle->devices[0]; - device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->gtSystemInfo.MaxEuPerSubSlice = maxEuPerSubSlice; - device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->gtSystemInfo.SubSliceCount = subSliceCount; - device->getNEODevice()->getRootDeviceEnvironment().getMutableHardwareInfo()->gtSystemInfo.SliceCount = sliceCount; - - device->getProperties(&deviceProperties); - - uint32_t expectedEUs = maxEuPerSubSlice * subSliceCount * sliceCount; - - EXPECT_EQ(expectedEUs * numSubDevices, zeEuCountDesc.numTotalEUs); -} - TEST_F(MultipleDevicesEnabledImplicitScalingTest, whenCallingGetMemoryPropertiesWithSubDevicesThenCorrectSizeReturned) { L0::Device *device0 = driverHandle->devices[0]; uint32_t count = 1;