-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
OpenBLAS wrongly disables AVX #5077
Comments
cc @xianyi |
@ayehow if you go into the directory
|
@staticfloat I get exactly the same:
|
@ayehow , |
Interesting. I tried putting
I thought that Pentium 2030M was Ivy Bridge, therefore SandyBridge architecture shrinked to 22 nm, while Haswell is a next architecture with the same die size. Where am I wrong? |
According to http://ark.intel.com/products/72059/Intel-Pentium-Processor-2030M-2M-Cache-2_50-GHz, this processor doesn't support AVX. Looking closely at the flags in your /proc/cpuinfo, AVX doesn't appear there, either. |
All right, got it. This budget processor, even though it is Ivy Bridge, simply doesn't contain support for AVX instructions (just found that in Intel datasheet, e.g. http://ark.intel.com/compare/72056,72059). I guess in this case it is best to compile for Nehalem, unless there's some hidden switch to compile for Ivy Bridge instruction set minus the AVX. |
@pao Sorry, I didn't notice your post before finding out myself. I did notice the missing AVX flag in cpuinfo earlier, but I thought it could be some kernel issue. @xianyi My problem is solved now, but still the fact that the processor is detected by |
@ayehow , Please try the following cmd.
Then, please provide |
@xianyi @ayehow You may want to open an issue back on the OpenBLAS tracker for the processor detection stuff. |
I have an IvyBridge CPU and Linux 3.2 on Debian wheezy (3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux), therefore I should have full AVX support. Nevertheless, OpenBLAS build (USE_SYSTEM_BLAS=0) falls back to NEHALEM. If I build with unset OPENBLAS_TARGET_ARCH, then NEHALEM is detected, and if I set OPENBLAS_TARGET_ARCH=SANDYBRIDGE, then I get:
deps/openblas-v0.2.8/Makefile.conf_last (selected lines):
but any time I run julia, I get this warning:
OpenBLAS : Your OS does not support AVX instructions. OpenBLAS is using Nehalem kernels as a fallback, which may give poorer performance.
This is my CPU: cat /proc/cpuinfo
Julia version: git label 'v0.2.0' (05c6461)
The text was updated successfully, but these errors were encountered: