-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Compile errors with AVX disabled #1027
Comments
I think both -mfma and -mf16c imply using AVX. Could you try passing Incidentally, these build failures appear to come from gcc 7 not supporting some of the newer AVX intrinsics (which can be emulated with old ones, if needed). Ostensibly this is good thing in this case, since otherwise the compilation would succeed but the produced binary would crash with |
That works, thank you! For what it's worth, by default it compiled but crashed with "Illegal Instruction" which made sense once I realized the CPU didn't support the instructions. But my first thought was that there was some memory corruption causing that error, rather than it literally being an illegal instruction. That's some overthinking on my part. |
Sorry for reopen this old issue. |
Trying to compile for older Intel XEON CPUs, and they don't support the AVX instructions. However, if I turn off LLAMA_AVX and/or LLAMA_AVX2, I get these errors (as of commit eb17a02):
The text was updated successfully, but these errors were encountered: