Test_parallel fails frequently, but not always.
It seems that tests/test_parallel.py::test_render_bsdm is causing it (most of the times?).
As it doesn't occur every time, it might be undefined behaviour related to the shared memory access.
I will first try to collect some tracebacks, maybe they show some pattern.
Test on macOS-latest with Python 3.6
test_jobs = None
@pytest.mark.parametrize('test_jobs', JOB_COUNTS)
def test_render_bsdm(test_jobs):
sdm_p, sdm_phi, sdm_theta = [*np.random.randn(3, 1000)]
hrirs = spa.IO.load_hrirs(fs=44100, filename='dummy')
bsdm_l_r, bsdm_r_r = spa.sdm.render_bsdm(sdm_p, sdm_phi, sdm_theta, hrirs,
jobs_count=1)
bsdm_l_t, bsdm_r_t = spa.sdm.render_bsdm(sdm_p, sdm_phi, sdm_theta, hrirs,
jobs_count=test_jobs)
> assert_allclose([bsdm_l_t, bsdm_r_t], [bsdm_l_r, bsdm_r_r])
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E Mismatched elements: 1 / 2510 (0.0398%)
E Max absolute difference: 0.64633057
E Max relative difference: 1.
E x: array([[ 1.955098, 0.205032, -1.341322, ..., 0. , 0. ,
E 0. ],
E [ 1.955098, 0.205032, -1.341322, ..., 0. , 0. ,
E 0. ]])
E y: array([[ 1.955098, 0.205032, -1.341322, ..., 0. , 0. ,
E 0. ],
E [ 1.955098, 0.205032, -1.341322, ..., 0. , 0. ,
E 0. ]])
Test_parallel fails frequently, but not always.
It seems that
tests/test_parallel.py::test_render_bsdmis causing it (most of the times?).As it doesn't occur every time, it might be undefined behaviour related to the shared memory access.
I will first try to collect some tracebacks, maybe they show some pattern.