-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BUG: cannot build on i5 CPU with gcc 7.3.0 #18945
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
Comments
What processor? What compiler? What OS? |
i7 |
|
Hmm, I run an i5-4670K which is very similar, except that it has AVX2 that seems to be missing from yours. @seiko2plus Thoughts? |
I wonder if the age of |
@themaddoctor, I'm not sure what kinda a setup you have but according to your build error, you have a mismatched combination of old assembler and modern compiler. In other words, your compiler supports It is not clear to me your intention behind building NumPy from the source, but you have several options here:
If you're going to use this build only for your local machine then maybe you just need to disable Try to use one of the following options to disable cd /path/to/numpy
# 1- Disable dynamic dispatching AVX512 in runtime
# good option if you have any intention to ship this build to run on different users or platforms rather than yours.
python setup.py build --cpu-dispatch="max -avx512_knl -avx512_knm -avx512_skx -avx512_clx -avx512_cnl -avx512_icl" install
# 2- same as the above but via PIP
pip install -v --no-use-pep517 --global-option=build \
--global-option="--cpu-dispatch=max -avx512_knl -avx512_knm -avx512_skx -avx512_clx -avx512_cnl -avx512_icl" ./
# 3- Disable all dynamic dispatching for all CPU features and enables only CPU features that supported by your local/host CPU via static dispatching (baseline)
# best option for you if you're not planning to ship this build to other users
python setup.py build --cpu-baseline="native" --cpu-dispatch="none" install
# 4- same as the above but via PIP
pip install -v --no-use-pep517 --global-option=build --global-option="--cpu-baseline=native" \
--global-option="--cpu-dispatch=none" ./ From our side, we will release a new patch to test AVX instructions against the assembler during the build-time to avoid such issues as this. |
Thanks. I'll try option 3. |
Cannot build on my processor. Have a nice day.
Reproducing code example:
Error message:
NumPy/Python version information:
The text was updated successfully, but these errors were encountered: