-
Notifications
You must be signed in to change notification settings - Fork 254
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
SSE4.1 support cannot be enabled on machines with AVX #342
Comments
If AVX || AVX2 || AVX512F are defined here then the generated SSE code won't execute on very old (ancient!) CPU's that don't support AVX. That's why these macros are here. I'll double check that this still works, though. |
I've verified that SSE supports works as intended under Windows and Linux. Can you describe what you're doing that's causing these code gen sanity checks to trigger? Your options are probably not the same as the ones used to compile the tool. |
Those are always defined by the compiler, on CPUs that support those features.
Does that CPU support AVX? Try replicating it on a VPS, with a more modern CPU.
Trying to enable SSE4.1 by compiling the software on a CPU that supports AVX. See also: https://bugs.gentoo.org/892727
No such risk. Runtime CPU feature check takes care of that. The code I'm removing with the related PR, from 2 months ago, is a redundant and buggy compile-time check. No functionality will be lost. |
Odd. I'm going to merge your PR - I don't see any harm in it. Thanks! |
It is due to this check:
basis_universal/encoder/basisu_kernels_sse.cpp
Lines 26 to 27 in 8903f6d
Looks like some unfortunate refactoring artefact from old code that supported more than one SIMD type.
The text was updated successfully, but these errors were encountered: