-
Notifications
You must be signed in to change notification settings - Fork 312
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
Error: unknown architectural extension 'sve2-aes'
when compiling on Graviton3
#1881
Comments
Error: unknown architectural extension
sve2-aes'` when compiling on Graviton3Error: unknown architectural extension 'sve2-aes'
when compiling on Graviton3
Hi, thanks for reporting this. Does anyone know if Graviton3 ships with a GCC tailored to what their core can do? If so, is there any way to detect this? |
Oddly enough when compiling with Update:
which is correct but there is no flag for the architecture, only the micro-arch. If I run the system's GCC (7.3.1) with the same command
which is a lot more promising and also makes highway compile. |
Nice. It's probably helpful to use a newer GCC than 7.3, so perhaps one good way forward is to build GCC from source, or is there some other package repo available? |
I just tried with a freshly compiled gcc 13.2.0 and the problem still persists. I will try with clang in the next hours and update you. |
hm, strange. Is there something about the AWS config that causes compilers built there to be configured for only that CPU? |
Just got the same problem with gcc-11.4 building gemma.cpp |
Thanks, gcc-11.4 is a different issue. That compiler is too old to know about SVE2 and we should not be attempting to use it. I will update Highway to fix this. In the meantime, |
PiperOrigin-RevId: 626969398
PiperOrigin-RevId: 626969398
PiperOrigin-RevId: 626969398
PiperOrigin-RevId: 626986866
@jan-wassenberg thank you for the advice, it helped, this problem disappeared!
I think this problem may be due to the fact that I'm trying to build the library on Ubuntu 18.04 with binutils 2.30. This idea came from here. Wdyt? |
Sounds like progress :) I think support was added for that in GAS in 2019. Upgrading binutils sounds good! |
I think this is now resolved, please reopen if not :) |
Steps to reproduce:
Commit SHA: 326ac6c
Cmake version: 3.26.3
GCC version: 13.1.0
Output of
lscpu
:The text was updated successfully, but these errors were encountered: