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

Performance fix: don't let boost promote doubles to long doubles #968

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dslarm
Copy link

@dslarm dslarm commented Oct 23, 2024

Fixes #966
This fix resolves performance issue where Boost::math unnecessarily promotes doubles to long double, which is not fully supported by hardware leading to slow-downs.

The change is to set a define during cmake process which prevents promotion ( -DBOOST_MATH_PROMOTE_DOUBLE_POLICY=false )

    Set boost options in CMakeLists.txt to not promote doubles to long doubles. Promotion
    incurs performance penalty on all platforms, and particularly aarch64.
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.

Performance issue in use of boost::math::digamma on aarch64 Linux
1 participant