From 94e6cdb2bf9f6cd5adcad5655ff86b4fb555aad8 Mon Sep 17 00:00:00 2001 From: Bartosz Podrygajlo Date: Mon, 12 Aug 2024 22:00:49 +0200 Subject: [PATCH] Duplicate the testcase for llr with avx 256-bit vector instructions disabled. This creates another test executable for llr with the same testcases but compiled without avx 256-bit vector instructions. --- CMakeLists.txt | 4 ++++ openair1/PHY/NR_TRANSPORT/tests/CMakeLists.txt | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b2a3b41d9..1247d8219c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1152,6 +1152,10 @@ add_library(PHY_NR_COMMON ${PHY_NR_SRC_COMMON}) add_library(PHY_NR ${PHY_NR_SRC}) target_link_libraries(PHY_NR nr_phy_common nr_common) +add_library(PHY_NR_NO_AVX_256 ${PHY_NR_SRC}) +target_link_libraries(PHY_NR_NO_AVX_256 nr_phy_common nr_common) +target_compile_definitions(PHY_NR_NO_AVX_256 PUBLIC USE_128BIT) + add_library(PHY_NR_UE ${PHY_NR_UE_SRC}) target_link_libraries(PHY_NR_UE PRIVATE asn1_nr_rrc_hdrs nr_phy_common nr_common) diff --git a/openair1/PHY/NR_TRANSPORT/tests/CMakeLists.txt b/openair1/PHY/NR_TRANSPORT/tests/CMakeLists.txt index c62a16dc21..1051824bf9 100644 --- a/openair1/PHY/NR_TRANSPORT/tests/CMakeLists.txt +++ b/openair1/PHY/NR_TRANSPORT/tests/CMakeLists.txt @@ -3,3 +3,9 @@ target_link_libraries(test_llr PRIVATE PHY_NR GTest::gtest minimal_lib) add_dependencies(tests test_llr) add_test(NAME test_llr COMMAND ./test_llr) + +add_executable(test_llr_no_avx_256 test_llr.cpp) +target_link_libraries(test_llr_no_avx_256 PRIVATE PHY_NR_NO_AVX_256 GTest::gtest minimal_lib) +add_dependencies(tests test_llr_no_avx_256) +add_test(NAME test_llr_no_avx_256 + COMMAND ./test_llr_no_avx_256)