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

Fix/smarter disabling #286

Merged
merged 4 commits into from
Oct 19, 2023
Merged

Fix/smarter disabling #286

merged 4 commits into from
Oct 19, 2023

Conversation

kusalananda
Copy link
Member

@kusalananda kusalananda commented Oct 2, 2023

This PR changes the user-accessible logic in the configure script, ensuring that if a user uses e.g. --disable-sse, all SSE code paths are removed and no SSE-related compiler flags are used. Likewise for --disable-avx and --disable-fma.

This fixes the issue that occurs if a user compiles the code on one system that supports SSE, AVX, and FMA, but runs it on another system which does not have one or several of these extensions. Previously, the code would always be compiled with the associated -m options if the build system supported them (even if the associated code paths were disabled), leading to binaries that could not be used on the target system.

This PR closes #261
This PR closes #194
This PR closes #276

The extension must be defined (this is determined by the `configure`
script), and it must not be disabled (this is done by the user on the
command line using e.g. `--disable-avx`).
…flags

Instead, look at the test results and allow the user to disable the
vector extensions.
@kusalananda kusalananda merged commit c5c730c into develop Oct 19, 2023
5 checks passed
@zhangchicool zhangchicool deleted the fix/smarter-disabling branch September 12, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant