From: Clayton Smith Date: Fri, 8 Dec 2023 23:57:02 +0000 (-0500) Subject: [PATCH 4/6] Fix flaky fm_detect test X-Git-Tag: archive/raspbian/3.1.0-3+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2273b41ef7f836da3e5a9e4a31dee41cb6028fcd;p=volk.git [PATCH 4/6] Fix flaky fm_detect test Signed-off-by: Clayton Smith Gbp-Pq: Name 0004-Fix-flaky-fm_detect-test.patch --- diff --git a/kernels/volk/volk_32f_x2_fm_detectpuppet_32f.h b/kernels/volk/volk_32f_x2_fm_detectpuppet_32f.h index e4196d5..b490154 100644 --- a/kernels/volk/volk_32f_x2_fm_detectpuppet_32f.h +++ b/kernels/volk/volk_32f_x2_fm_detectpuppet_32f.h @@ -20,7 +20,7 @@ static inline void volk_32f_x2_fm_detectpuppet_32f_a_avx(float* outputVector, float* saveValue, unsigned int num_points) { - const float bound = 1.0f; + const float bound = 2.0f; volk_32f_s32f_32f_fm_detect_32f_a_avx( outputVector, inputVector, bound, saveValue, num_points); @@ -35,7 +35,7 @@ static inline void volk_32f_x2_fm_detectpuppet_32f_a_sse(float* outputVector, float* saveValue, unsigned int num_points) { - const float bound = 1.0f; + const float bound = 2.0f; volk_32f_s32f_32f_fm_detect_32f_a_sse( outputVector, inputVector, bound, saveValue, num_points); @@ -49,7 +49,7 @@ static inline void volk_32f_x2_fm_detectpuppet_32f_generic(float* outputVector, float* saveValue, unsigned int num_points) { - const float bound = 1.0f; + const float bound = 2.0f; volk_32f_s32f_32f_fm_detect_32f_generic( outputVector, inputVector, bound, saveValue, num_points); @@ -73,7 +73,7 @@ static inline void volk_32f_x2_fm_detectpuppet_32f_u_avx(float* outputVector, float* saveValue, unsigned int num_points) { - const float bound = 1.0f; + const float bound = 2.0f; volk_32f_s32f_32f_fm_detect_32f_u_avx( outputVector, inputVector, bound, saveValue, num_points); diff --git a/lib/kernel_tests.h b/lib/kernel_tests.h index ab85423..7d637e5 100644 --- a/lib/kernel_tests.h +++ b/lib/kernel_tests.h @@ -64,8 +64,9 @@ std::vector init_test_list(volk_test_params_t test_params) test_params_rotator)) QA(VOLK_INIT_PUPP( volk_8u_conv_k7_r2puppet_8u, volk_8u_x4_conv_k7_r2_8u, test_params.make_tol(0))) - QA(VOLK_INIT_PUPP( - volk_32f_x2_fm_detectpuppet_32f, volk_32f_s32f_32f_fm_detect_32f, test_params)) + QA(VOLK_INIT_PUPP(volk_32f_x2_fm_detectpuppet_32f, + volk_32f_s32f_32f_fm_detect_32f, + test_params.make_absolute(1e-6))) QA(VOLK_INIT_TEST(volk_16ic_s32f_deinterleave_real_32f, test_params)) QA(VOLK_INIT_TEST(volk_16ic_deinterleave_real_8i, test_params)) QA(VOLK_INIT_TEST(volk_16ic_deinterleave_16i_x2, test_params))