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

Add disable simd env flag #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Martin-Nyaga
Copy link
Owner

@Martin-Nyaga Martin-Nyaga commented Dec 21, 2021

This PR updates some of the internal structure of the library. Most importantly array_2d.cpp now contains code only related to the ruby Array2D class, and all the lower level, mostly ruby-independent C++ statistics code has moved to dfloat.cpp.

In addition, this adds support for compiling the gem without SIMD intrinsics at all using FAST_STATISTICS_DISABLE_SIMD=1 gem install fast_statistics. This allows testing the behaviour in an environment where xmmintrin is not available, and also allows manually disabling SIMD if desired. The travis CI config runs the test suite with and without SIMD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant