Skip to content
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

disabling AVX routines under Visual Studio #603

Merged
merged 5 commits into from
Mar 1, 2024

Conversation

lemire
Copy link
Member

@lemire lemire commented Mar 1, 2024

In Visual Studio's last few C++ compilers (starting with VS 17.8), you can write code that relies solely on AVX2, and it may compile to AVX-512 instructions. See screenshot.

Related problems were reported to Microsoft by several folks and reportedly fixed in 17.9, but according to our tests, it is not fixed.

This is a critical issue that can lead to crashing software. Unfortunately, you may not see it until you test it on hardware that does not support AVX-512.

Thus, we are disabling AVX optimizations on recent Visual Studio C++ compilers.

GHmSsjFXIAAjRHe

Related threads/findings:
Original find
Microsoft bug report

@lemire
Copy link
Member Author

lemire commented Mar 1, 2024

@Dr-Emann I don't want to do this, but if Microsoft cannot support AVX properly, there is little we can do.

@Dr-Emann
Copy link
Member

Dr-Emann commented Mar 1, 2024

Unfortunately, agreed.

@lemire lemire merged commit 67cddc3 into master Mar 1, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants