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

Herbie should warn if MPFR is single-threaded #1080

Open
pavpanchekha opened this issue Nov 27, 2024 · 0 comments
Open

Herbie should warn if MPFR is single-threaded #1080

pavpanchekha opened this issue Nov 27, 2024 · 0 comments

Comments

@pavpanchekha
Copy link
Contributor

MPFR can be compiled in single-threaded mode, in which case all MPFR function synchronize. The relevant code (which requires ffi/unsafe and math/private/bigfloat/mpfr) is:

((get-ffi-obj 'mpfr_buildopt_tls_p mpfr-lib (_fun -> _bool)))

This returns #t if MPFR is multi-threaded and #f if it's single-threaded. Perhaps Herbie should warn if you ask for threads but your MPFR is single-threaded.

@zaneenders zaneenders assigned zaneenders and unassigned zaneenders Dec 6, 2024
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

No branches or pull requests

2 participants