qa: lower tolerance for 32fc_mag to fix issue #96
authorNathan West <nathan.west@gnuradio.org>
Thu, 4 Aug 2016 15:30:55 +0000 (11:30 -0400)
committerA. Maitland Bottoms <bottoms@debian.org>
Sun, 27 Aug 2017 17:44:55 +0000 (18:44 +0100)
Gbp-Pq: Name 0005-qa-lower-tolerance-for-32fc_mag-to-fix-issue-96.patch

lib/kernel_tests.h

index 2bf1f0c23bda4db04820f2d0b122faf900693d98..7c82733faf0d95663a2a10f43bd431ad3a69cd04 100644 (file)
@@ -24,6 +24,8 @@ std::vector<volk_test_case_t> init_test_list(volk_test_params_t test_params)
     // Some kernels need a lower tolerance
     volk_test_params_t test_params_inacc = volk_test_params_t(1e-2, test_params.scalar(),
             test_params.vlen(), test_params.iter(), test_params.benchmark_mode(), test_params.kernel_regex());
+    volk_test_params_t test_params_inacc_tenth = volk_test_params_t(1e-1, test_params.scalar(),
+            test_params.vlen(), test_params.iter(), test_params.benchmark_mode(), test_params.kernel_regex());
     volk_test_params_t test_params_int1 = volk_test_params_t(1, test_params.scalar(),
             test_params.vlen(), test_params.iter(), test_params.benchmark_mode(), test_params.kernel_regex());
 
@@ -79,7 +81,7 @@ std::vector<volk_test_case_t> init_test_list(volk_test_params_t test_params)
         (VOLK_INIT_TEST(volk_32fc_index_max_16u,      volk_test_params_t(3, test_params.scalar(), test_params.vlen(), test_params.iter(), test_params.benchmark_mode(), test_params.kernel_regex())))
         (VOLK_INIT_TEST(volk_32fc_index_max_32u,      volk_test_params_t(3, test_params.scalar(), test_params.vlen(), test_params.iter(), test_params.benchmark_mode(), test_params.kernel_regex())))
         (VOLK_INIT_TEST(volk_32fc_s32f_magnitude_16i,                   test_params_int1))
-        (VOLK_INIT_TEST(volk_32fc_magnitude_32f,                        test_params_inacc))
+        (VOLK_INIT_TEST(volk_32fc_magnitude_32f,                        test_params_inacc_tenth))
         (VOLK_INIT_TEST(volk_32fc_magnitude_squared_32f,                test_params))
         (VOLK_INIT_TEST(volk_32fc_x2_multiply_32fc,                     test_params))
         (VOLK_INIT_TEST(volk_32fc_x2_multiply_conjugate_32fc,           test_params))