Closed mag1cp1n closed 9 months ago
I've managed to repro the test_overlap.py
failures, locally. If allclose()
(with eps=1.e-8) is used then the tests PASS, at least locally on my node.
from utils.comparisons import allclose
#...
eps = 1.0e-8
#
# assert np.array_equal(a_np, a_num)
#
# this fixes the failure:
#
assert allclose(a_np, a_num, atol=eps)
#...
Thank you @aschaffer. This was my mistake. I should have used allclose
in that testcase in the first place, since it was comparing the results of floating point computations from two different implementations. Weirdly this didn't show up originally, but apparently the CUDA bump caused the result of sin
to change ever so slightly.
Thank you @aschaffer. This was my mistake. I should have used
allclose
in that testcase in the first place, since it was comparing the results of floating point computations from two different implementations. Weirdly this didn't show up originally, but apparently the CUDA bump caused the result ofsin
to change ever so slightly.
No worries. Yup, that typically happens: CTK, or other library dependency changes and round-off errors change ever so slightly, but enough to fail "exact" comparisons.
Also bump the legate.core version to TOT.