Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes: UB in compute_block_grid_mapping(), tests for iterations.json, compilation #237

Merged
merged 8 commits into from
May 1, 2024

Conversation

vasdommes
Copy link
Collaborator

…th P-err, p-err, D-err)

Errors may differ as they approach zero, leading to false positive test fails.
- #include<flint/nmod_vec.h> instead of <flint/nmod.h> for FLINT 2.8.4 and earlier
- Remove some unused includes
- Add -D_GNU_SOURCE=1 to CXXFLAGS
- Update library versions and paths
- Add note about Python 2 or 3 failing on different machines
…mall.

We had to set the small value limit to 2^{-diff_precision/2}, otherwise tests from skydiving-master branch fail.
Fixes ./waf configure in Docker for new FLINT image
…ompute_block_grid_mapping error)

The code was comparing iterators for different containers, which leads to undefined behaviour.

In the specific case where the exception was observed (on a specific machine),
  available_block_maps[1].begin() == available_block_maps[0].end()
returned true, unexpectedly.

We fix it by using std::optional<iterator> and checking for null explicitly.
@vasdommes vasdommes merged commit d3c2659 into master May 1, 2024
2 checks passed
@vasdommes vasdommes deleted the minor-fixes branch May 1, 2024 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant