mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
test: add meteorlake command list unit tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bfd7067c1a
commit
db9559c898
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2022 Intel Corporation
|
||||
# Copyright (C) 2022-2023 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
@@ -7,6 +7,7 @@
|
||||
if(TESTS_MTL)
|
||||
target_sources(${TARGET_NAME} PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_cmdlist_mtl.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/test_sampler_mtl.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/test/common/test_macros/hw_test.h"
|
||||
|
||||
#include "level_zero/core/test/unit_tests/fixtures/cmdlist_fixture.inl"
|
||||
|
||||
namespace L0 {
|
||||
namespace ult {
|
||||
|
||||
using CmdListPipelineSelectStateTestMtl = Test<CmdListPipelineSelectStateFixture>;
|
||||
|
||||
HWTEST2_F(CmdListPipelineSelectStateTestMtl,
|
||||
givenAppendSystolicKernelToCommandListWhenExecutingCommandListThenPipelineSelectStateIsTrackedCorrectly, IsMTL) {
|
||||
testBody<FamilyType>();
|
||||
}
|
||||
|
||||
HWTEST2_F(CmdListPipelineSelectStateTestMtl,
|
||||
givenCmdQueueAndImmediateCmdListUseSameCsrWhenAppendingSystolicKernelOnBothRegularFirstThenPipelineSelectStateIsNotChanged, IsMTL) {
|
||||
testBodyShareStateRegularImmediate<FamilyType>();
|
||||
}
|
||||
|
||||
HWTEST2_F(CmdListPipelineSelectStateTestMtl,
|
||||
givenCmdQueueAndImmediateCmdListUseSameCsrWhenAppendingSystolicKernelOnBothImmediateFirstThenPipelineSelectStateIsNotChanged, IsMTL) {
|
||||
testBodyShareStateImmediateRegular<FamilyType>();
|
||||
}
|
||||
|
||||
using CmdListLargeGrfTestMtl = Test<CmdListLargeGrfFixture>;
|
||||
|
||||
HWTEST2_F(CmdListLargeGrfTestMtl,
|
||||
givenAppendLargeGrfKernelToCommandListWhenExecutingCommandListThenStateComputeModeStateIsTrackedCorrectly, IsMTL) {
|
||||
testBody<FamilyType>();
|
||||
}
|
||||
|
||||
} // namespace ult
|
||||
} // namespace L0
|
||||
Reference in New Issue
Block a user