Correct getDeviceMemoryName

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-6112
This commit is contained in:
Kamil Kopryk
2021-08-31 15:17:18 +00:00
committed by Compute-Runtime-Automation
parent d2014b2869
commit 4f15365dae
12 changed files with 46 additions and 17 deletions

View File

@@ -17,6 +17,8 @@
#include "opencl/source/sampler/sampler.h"
#include "opencl/test/unit_test/mocks/mock_context.h"
#include "gmock/gmock.h"
using namespace NEO;
void HwInfoConfigTest::SetUp() {
@@ -207,3 +209,9 @@ HWTEST_F(HwInfoConfigTest, givenHwInfoConfigWhenAskedForDefaultEngineTypeAdjustm
const auto &hwInfoConfig = *HwInfoConfig::get(pInHwInfo.platform.eProductFamily);
EXPECT_FALSE(hwInfoConfig.isDefaultEngineTypeAdjustmentRequired(pInHwInfo));
}
HWTEST_F(HwInfoConfigTest, whenCallingGetDeviceMemoryNameThenDdrIsReturned) {
const auto &hwInfoConfig = *HwInfoConfig::get(pInHwInfo.platform.eProductFamily);
auto deviceMemoryName = hwInfoConfig.getDeviceMemoryName();
EXPECT_THAT(deviceMemoryName, testing::HasSubstr(std::string("DDR")));
}

View File

@@ -8,6 +8,7 @@ if(TESTS_XE_HP_SDV)
set(IGDRCL_SRCS_tests_xe_hp_core_xehp
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/cache_flush_tests_xehp.inl
${CMAKE_CURRENT_SOURCE_DIR}/excludes_xehp.cpp
${CMAKE_CURRENT_SOURCE_DIR}/get_device_info_xehp.inl
${CMAKE_CURRENT_SOURCE_DIR}/hw_helper_tests_xehp.inl
${CMAKE_CURRENT_SOURCE_DIR}/hw_info_tests_xehp.inl

View File

@@ -0,0 +1,10 @@
/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "test.h"
HWTEST_EXCLUDE_PRODUCT(HwInfoConfigTest, whenCallingGetDeviceMemoryNameThenDdrIsReturned, IGFX_XE_HP_SDV);

View File

@@ -14,6 +14,8 @@
#include "opencl/test/unit_test/mocks/mock_context.h"
#include "test.h"
#include "gmock/gmock.h"
using namespace NEO;
using XeHPHwInfoConfig = ::testing::Test;
@@ -66,6 +68,12 @@ XEHPTEST_F(XeHPHwInfoConfig, givenDebugVariableSetWhenConfiguringThenEnableRcs)
EXPECT_TRUE(hwInfo.featureTable.ftrRcsNode);
}
XEHPTEST_F(XeHPHwInfoConfig, givenXeHpWhenCallingGetDeviceMemoryNameThenHbmIsReturned) {
auto hwInfoConfig = HwInfoConfig::get(productFamily);
auto deviceMemoryName = hwInfoConfig->getDeviceMemoryName();
EXPECT_THAT(deviceMemoryName, testing::HasSubstr(std::string("HBM")));
}
using XeHPHwHelperTest = HwHelperTest;
XEHPTEST_F(XeHPHwHelperTest, givenXeHPMultiConfigWhenAllowRenderCompressionIsCalledThenCorrectValueIsReturned) {