-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
BUG: CPU Feature Checks Fail on OpenBSD 7.5 #26785
Comments
Thanks for the report @AngeloD2022. It seems like something is going wrong with the feature check for AVX. The build log you provided doesn't contain enough detail to see exactly what is going wrong, but the checks do return true for some reason:
What we need is the more detailed build log in the build directory. If you add
The code that is compiled to test support is under |
That just disabled AVX512, not all AVX features. If you want to bypass all SIMD checks and usage, try:
|
Hello, This also happens on OpenBSD 7.5 with a CPU that supports AVX2, so it may not be an issue with detection of CPU features but rather something about the OpenBSD environment itself. With
...
and so on. |
@emestee Your build failure is in the simd sort module and was recently reported by someone else too. See intel/x86-simd-sort#157. #26797 should fix it. |
Actually, looks like @AngeloD2022's bug report is the same error too. #26797 should close this issue. |
Oof. Sorry I missed this. Glad to see there's a PR that might fix this! |
Describe the issue:
My machine is running on an Intel Celeron 3855U, which according to Intel's website, does not support advanced vector extensions.
When I run
pip install numpy
, it needs to build from source. I assume that this is because of my relatively uncommon configuration. Nevertheless, numpy's build script appears to misrecognize my CPU's capabilities and incorrectly enables the AVX targets. Thinking I could resolve this by building numpy from source, I cloned the repository and ran the suggested command from numpy's official documentation, to manually disable the AVX features. The build appears to fail for the same reason (the related log is attached).install_log.txt
Reproduce the code example:
python3.11 -m venv venv source venv/bin/activate pip install numpy
Error message:
Python and NumPy Versions:
Python: 3.11.9
NumPy: 2.0.0
Runtime Environment:
N/A
Context for the issue:
This prevents usage of numpy, as well as any dependent package on machines that:
The text was updated successfully, but these errors were encountered: