Skip to content

Commit

Permalink
Merge pull request gnuradio#715 from argilo/fix-fm-detect-test
Browse files Browse the repository at this point in the history
Fix flaky fm_detect test
  • Loading branch information
jdemel authored Dec 10, 2023
2 parents 4747b98 + dcb11b0 commit 7698f9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions kernels/volk/volk_32f_x2_fm_detectpuppet_32f.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions lib/kernel_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ std::vector<volk_test_case_t> 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))
Expand Down

0 comments on commit 7698f9a

Please sign in to comment.