<div dir="ltr">First thing I noticed when installing into /opt/OpenBLAS was that the LAPACK header files were not being copied properly. This was because the OpenBLAS makefile uses the "-D" option in the install command which the default Mac install doesn't support. A quick "brew install coreutils" solved that problem.<div>
<br></div><div>I rebuilt a new virtualenv and rebuilt numpy into it using the OpenBLAS in /opt/OpenBLAS and things seem to be absolutely fine now. I can run the OpenBLAS version on my mac. Thanks for the suggestions!<br></div>
<div><br></div><div>I ran the test:</div><div><a href="https://gist.githubusercontent.com/osdf/3842524/raw/df01f7fa9d849bec353d6ab03eae0c1ee68f1538/test_numpy.py">https://gist.githubusercontent.com/osdf/3842524/raw/df01f7fa9d849bec353d6ab03eae0c1ee68f1538/test_numpy.py</a><br>
</div><div><br></div><div>On my Macbook Pro (Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz, 8GB Ram) disappointingly:</div>







<div>the Atlas version gives consistent 0.02,</div><div>the OpenBLAS version runs in 0.1 with OMP_NUM_THREADS=1 and 0.04 with OMP_NUM_THREADS=8.</div><div><br></div><div>Happy to run a more extensive test suite if anyone is interested.</div>
<div><br></div><div>Jurgen </div>















<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 6:07 PM, Olivier Grisel <span dir="ltr"><<a href="mailto:olivier.grisel@ensta.org" target="_blank">olivier.grisel@ensta.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have exactly the same setup as yours and it links to OpenBLAS<br>
correctly (in a venv as well, installed with python setup.py install).<br>
The only difference is that I installed OpenBLAS in the default<br>
folder: /opt/OpenBLAS (and I reflected that in site.cfg).<br>
<br>
When you run otool -L, is it in your source tree or do you point to<br>
the numpy/core/_dotblas.so of the site-packages folder of your venv?<br>
<br>
If you activate your venv, go to a different folder (e.g. /tmp) and type:<br>
<br>
python -c "import numpy as np; np.show_config()"<br>
<br>
what do you get? I get:<br>
<br>
$ python -c "import numpy as np; np.show_config()"<br>
lapack_opt_info:<br>
    libraries = ['openblas', 'openblas']<br>
    library_dirs = ['/opt/OpenBLAS/lib']<br>
    language = f77<br>
blas_opt_info:<br>
    libraries = ['openblas', 'openblas']<br>
    library_dirs = ['/opt/OpenBLAS/lib']<br>
    language = f77<br>
openblas_info:<br>
    libraries = ['openblas', 'openblas']<br>
    library_dirs = ['/opt/OpenBLAS/lib']<br>
    language = f77<br>
blas_mkl_info:<br>
  NOT AVAILABLE<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Olivier<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</font></span></blockquote></div><br></div>