-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
-march=native option makes gcc compiler to fail on Power8 system with Ubuntu #1591
Comments
Thanks; very valuable report and analysis. I think spaCy should not set If we get rid of these dot products we can also compile with |
Somewhat related, the default |
Looks like the best would be the if compiler CPU optimization flags can be provided through env variable for example in case of binaries generation or detected using a library if not provided for local installs optimization. |
I think this might cause #1589 I was building a Docker image with spaCy with a different set of supported CPU instructions to the target set, which results in I think the built library should be largely independent of target platform. For now, the workaround is simply to build the Docker image on the target platform (instead of "anywhere"!) |
We weren't able to use spaCy 2.0.5 on EMR because of this issue. We had to publish an internal version that reverses commit a3d4dd1 in order to avoid the |
Thanks all for the report. I've now removed the |
The closest equivalent option for Power systems is currently |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
My Environment:
Recent commit 79fcf85 added -march=native to the compile options for gcc/clang in setup.py. The problem is that -march=native is not supported by all the gcc compilers and as far as I know some older versions of clang too. I've tested it with gcc on ppc64le. Also tested gcc-arm-linux-gnueabi ARM cross compiler on x86 with Ubuntu 14.04.
This is the output of the ppc64le:
After removing the -march=native option, spaCy builds and runs just fine.
Here is the output from the arm cross compiler.
I guess the best solution would be to add code to detect the best CPU flags and add them as -march parameters or simply detect if -march=native is supported by the compiler and only use it in such case.
The text was updated successfully, but these errors were encountered: