From d9f8f811fb8caedc68d0a9f1efdc3535d4e01741 Mon Sep 17 00:00:00 2001 From: Clayton Smith Date: Sat, 11 Nov 2023 09:19:48 -0500 Subject: [PATCH] Use absolute tolerances for accumulator and dot product Signed-off-by: Clayton Smith --- lib/kernel_tests.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/kernel_tests.h b/lib/kernel_tests.h index dd430762..fa63e195 100644 --- a/lib/kernel_tests.h +++ b/lib/kernel_tests.h @@ -75,7 +75,7 @@ std::vector init_test_list(volk_test_params_t test_params) QA(VOLK_INIT_TEST(volk_16i_s32f_convert_32f, test_params)) QA(VOLK_INIT_TEST(volk_16i_convert_8i, test_params)) QA(VOLK_INIT_TEST(volk_16i_32fc_dot_prod_32fc, test_params.make_absolute(1e-1))) - QA(VOLK_INIT_TEST(volk_32f_accumulator_s32f, test_params_inacc)) + QA(VOLK_INIT_TEST(volk_32f_accumulator_s32f, test_params.make_absolute(2e-2))) QA(VOLK_INIT_TEST(volk_32f_x2_add_32f, test_params)) QA(VOLK_INIT_TEST(volk_32f_index_max_16u, test_params)) QA(VOLK_INIT_TEST(volk_32f_index_max_32u, test_params)) @@ -95,15 +95,16 @@ std::vector init_test_list(volk_test_params_t test_params) QA(VOLK_INIT_TEST(volk_32fc_s32f_power_32fc, test_params_power)) QA(VOLK_INIT_TEST(volk_32f_s32f_calc_spectral_noise_floor_32f, test_params_inacc)) QA(VOLK_INIT_TEST(volk_32fc_s32f_atan2_32f, test_params)) - QA(VOLK_INIT_TEST(volk_32fc_x2_conjugate_dot_prod_32fc, test_params_inacc_tenth)) + QA(VOLK_INIT_TEST(volk_32fc_x2_conjugate_dot_prod_32fc, + test_params.make_absolute(2e-2))) QA(VOLK_INIT_TEST(volk_32fc_deinterleave_32f_x2, test_params)) - QA(VOLK_INIT_TEST(volk_32fc_accumulator_s32fc, test_params.make_tol(1e-3))) + QA(VOLK_INIT_TEST(volk_32fc_accumulator_s32fc, test_params.make_absolute(3e-2))) QA(VOLK_INIT_TEST(volk_32fc_deinterleave_64f_x2, test_params)) QA(VOLK_INIT_TEST(volk_32fc_s32f_deinterleave_real_16i, test_params)) QA(VOLK_INIT_TEST(volk_32fc_deinterleave_imag_32f, test_params)) QA(VOLK_INIT_TEST(volk_32fc_deinterleave_real_32f, test_params)) QA(VOLK_INIT_TEST(volk_32fc_deinterleave_real_64f, test_params)) - QA(VOLK_INIT_TEST(volk_32fc_x2_dot_prod_32fc, test_params_inacc)) + QA(VOLK_INIT_TEST(volk_32fc_x2_dot_prod_32fc, test_params.make_absolute(2e-2))) QA(VOLK_INIT_TEST(volk_32fc_32f_dot_prod_32fc, test_params.make_absolute(1e-2))) QA(VOLK_INIT_TEST(volk_32fc_index_max_16u, test_params)) QA(VOLK_INIT_TEST(volk_32fc_index_max_32u, test_params)) @@ -126,7 +127,7 @@ std::vector init_test_list(volk_test_params_t test_params) QA(VOLK_INIT_TEST(volk_32fc_x2_square_dist_32f, test_params)) QA(VOLK_INIT_TEST(volk_32fc_x2_s32f_square_dist_scalar_mult_32f, test_params)) QA(VOLK_INIT_TEST(volk_32f_x2_divide_32f, test_params)) - QA(VOLK_INIT_TEST(volk_32f_x2_dot_prod_32f, test_params_inacc)) + QA(VOLK_INIT_TEST(volk_32f_x2_dot_prod_32f, test_params.make_absolute(1.5e-2))) QA(VOLK_INIT_TEST(volk_32f_x2_s32f_interleave_16ic, test_params)) QA(VOLK_INIT_TEST(volk_32f_x2_interleave_32fc, test_params)) QA(VOLK_INIT_TEST(volk_32f_x2_max_32f, test_params))