From 7e7eceda156dee1ee96c4f4aad435623c0aef39c Mon Sep 17 00:00:00 2001 From: Robert Falkenberg Date: Thu, 9 Jun 2022 14:44:54 +0200 Subject: [PATCH] ctest: Viterbi test skips 0dB for non AVX2 machines The accuracy of the 8-bit implementation of the Viterbi decoder used on non-AVX2 machines falls below the theoretical accuracy at 0dB. --- lib/src/phy/fec/convolutional/test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/phy/fec/convolutional/test/CMakeLists.txt b/lib/src/phy/fec/convolutional/test/CMakeLists.txt index 23607bc78..59ed06791 100644 --- a/lib/src/phy/fec/convolutional/test/CMakeLists.txt +++ b/lib/src/phy/fec/convolutional/test/CMakeLists.txt @@ -18,7 +18,11 @@ add_test(viterbi_40_2 viterbi_test -n 1000 -s 1 -l 40 -t -e 2.0) add_test(viterbi_40_3 viterbi_test -n 1000 -s 1 -l 40 -t -e 3.0) add_test(viterbi_40_4 viterbi_test -n 1000 -s 1 -l 40 -t -e 4.5) -add_test(viterbi_1000_0 viterbi_test -n 100 -s 1 -l 1000 -t -e 0.0) +if (HAVE_AVX2) + # The accuracy of the 8-bit implementation of the Viterbi decoder used on + # non-AVX2 machines falls below the theoretical accuracy at 0dB. + add_test(viterbi_1000_0 viterbi_test -n 100 -s 1 -l 1000 -t -e 0.0) +endif() add_test(viterbi_1000_2 viterbi_test -n 100 -s 1 -l 1000 -t -e 2.0) add_test(viterbi_1000_3 viterbi_test -n 100 -s 1 -l 1000 -t -e 3.0) add_test(viterbi_1000_4 viterbi_test -n 100 -s 1 -l 1000 -t -e 4.5)