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
simd setup: amd64 target doesn't account for AVX support only #7222
Comments
I am confused, the CPU your are using is irrelevant here, this is an |
Sounds like a simde bug to me, it fails when -mxop is enabled (which is done with simde-features.h ends up hitting some different path and I think(?) it ends up never setting SIMDE_X86_SSE2_NATIVE which leads to m128i being missing (in simde/arm/neon/types.h):
|
fwiw |
@BGazotti maybe just remove the -march=bdver2 from your cflags and you should be fine. Do you have any idea where thats coming from? And of course report the issue to simde and hopefully they will fix it. |
I came here because I got a downstream bug report on Gentoo, but then they closed it (after seeing the unrelated -mavx2) and came here before I could reply, and most users on Gentoo will do -march=native or =something by default for their entire system. That aside I applied a workaround for Gentoo, ideally should be looked at in simde though. |
@BGazotti Hello, I'm the SIMDe maintainer and I came across this report. I have a fix at simd-everywhere/simde#1154 but I was unable to test it using qemu 8.2 ; can you confirm that it works for you? Using |
From my end I was able to reproduce with |
...not that i can confirm that the resulting kitty binary works fine given that gives me illegal instructions without qemu too (I do not have xop, so not that's not surprising). But I'm not too worried there. |
Building kitty 0.33.0 on a FX-6300 CPU (which supports AVX but not AVX2) fails.
Error message:
Editing
setup.py
to remove the assumption that amd64 arches have AVX2, falling back to AVX instead, and removing the#include <simde/arm/neon.h>
insimd-string-impl.h
seem to "fix" it - as in allow the build to finish.Should I just stick to SSE? If so, how to specify that at configure time?
Thanks!
The text was updated successfully, but these errors were encountered: