mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-10 05:49:51 +08:00
Correct getDeviceMemoryName
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-6112
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d2014b2869
commit
4f15365dae
@@ -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")));
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
10
opencl/test/unit_test/xe_hp_core/xehp/excludes_xehp.cpp
Normal file
10
opencl/test/unit_test/xe_hp_core/xehp/excludes_xehp.cpp
Normal 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);
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user