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
Building on Raspberry Pi with clang 7 does not detect NEON or NEON7 correctly #221
Comments
|
Digging deeper: I believe this is because volk cmake tests for neon but never actually adds it to the I'm using clang 7.0 on a Raspberr Pi 3. |
|
volk_profile shows significant improvements. |
|
Pretty sure neon is no longer an arch. There are two different flavours now. I'll have to poke around some. For the intel stuff, check if volk is doing compiler tests or looking at flag settings. |
|
Hmm ok.. well it worked as a workaround but maybe it's not optimal? Anyhow cmake fails to enable neon after detecting it. I'm not so well versed in the build system so I'm not able to suggest a good solution... Tell me if there's anything I can do to help. |
|
AH yes, neon selects intrinsics. Can you build with gcc and compare results? I think volk enables all available archs and then disables them when tests fail. |
|
Tried four different combinations. Clang 3.8, Clang 7.0.0, GCC 8 and GCC 6 (default with Raspbian). Both GCC adds the correct machines like you suspected. However two assembly file fails to compile. Both clang 3.8 (raspbian included) and clang 7 If I removed these files and comment out the references everything compiles fine with gcc 6 and 8. |
|
Wouldn't it be easier to migrate neon to only intrinsic? |
|
Clang is missing here: |
|
Indeed clang is missing in the definitions here: Line 16 in 59611a2
After I've added it, it works as expected (just copied the gnu arguments). Works fine now in clang but not in gcc (it's related to thumb2/thumb somehow) but I found another bug (and fixed I hope) in:
|
|
I've been carrying locally: |
|
But it seems clang has to be in the XML or neon won't be included at all.. Or are you referring to thumb? |
Why is neon not in available machines? Tests pass.
And why is
avx512f;avx512cdthere?The text was updated successfully, but these errors were encountered: