mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Cleaned up files: level_zero/tools/test/unit_tests/sources/sysman/windows/mock_sysman_fixture.h shared/test/common/os_interface/windows/wddm_fixture.h shared/test/unit_test/command_stream/compute_mode_tests.h shared/test/unit_test/encoders/walker_partition_fixture_xehp_and_later.h shared/test/unit_test/fixtures/preemption_fixture.h shared/test/unit_test/helpers/blit_commands_helper_tests.inl shared/test/unit_test/helpers/simd_helper_tests.inl Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
34 lines
897 B
C++
34 lines
897 B
C++
/*
|
|
* Copyright (C) 2019-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/helpers/simd_helper.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <typename WALKER_TYPE>
|
|
class GivenSimdSizeWhenGetSimdConfigCalledThenCorrectEnumReturned {
|
|
public:
|
|
static void testBodyImpl() {
|
|
uint32_t simd = 32;
|
|
auto result = getSimdConfig<WALKER_TYPE>(simd);
|
|
EXPECT_EQ(result, WALKER_TYPE::SIMD_SIZE::SIMD_SIZE_SIMD32);
|
|
|
|
simd = 16;
|
|
result = getSimdConfig<WALKER_TYPE>(simd);
|
|
EXPECT_EQ(result, WALKER_TYPE::SIMD_SIZE::SIMD_SIZE_SIMD16);
|
|
|
|
simd = 8;
|
|
result = getSimdConfig<WALKER_TYPE>(simd);
|
|
EXPECT_EQ(result, WALKER_TYPE::SIMD_SIZE::SIMD_SIZE_SIMD8);
|
|
|
|
simd = 1;
|
|
result = getSimdConfig<WALKER_TYPE>(simd);
|
|
EXPECT_EQ(result, WALKER_TYPE::SIMD_SIZE::SIMD_SIZE_SIMD32);
|
|
}
|
|
};
|
|
} // namespace NEO
|