MDAnalysis / mdanalysis

MDAnalysis is a Python library to analyze molecular dynamics simulations.
https://mdanalysis.org
Other
1.32k stars 652 forks source link

[Discuss, dont close] Precision of `distopia` functions may vary with architecture #3915

Open hmacdope opened 2 years ago

hmacdope commented 2 years ago

Discussion point for #3914.

Due to the use of VCL based metaprogramming and the way CPU dispatching is done in distopia, some very high precision tests may return different results based on the CPU you have.

For example the analysis/test_distances.py::TestDist::test_pairwise_dist_offset_effect test fails on my ancient local machine but is fine on CI in #3914 with a relative difference of 10^-7 (insignificant IMO).

This shouldn't be an issue as distopia is an optional dependency but I thought I would draw this to people's attention.

hmacdope commented 1 year ago

See #3914, addition of distopia did not require accuracy thresholds to be changed on any tests on any of the CI runners, so doesn't look like much of an issue (at least for now).