No _dotblas.so after installing OpenBLAS and Numpy

I am trying to speed up the matrix using NumPy in Ubuntu 14.04 LTS (64-bit). Instead of using ATLAS (in fact, when I use ATLAS, there is only 1 thread that is fully running, and 7 other open threads do nothing, even if I indicate OMP_NUM_THREADS=8, for example. I don’t know why.), I decided to try OpenBLAS.

I spent several hours following several tutorials on creating the source code for OpenBLAS and NumPy , for example [1] , [2] , [3] , [4] and [5] . However, none of them can generate _dotblas.soafter compilation NumPy, which is a critical file to speed up the operation dotbetween matrices.

Can I find out if I successfully built NumPy and OpenBLAS in Ubuntu 14.04? If so, can you tell me how to do this?

Thank.


Update:

Below is what I summarized from the above five posts and tried on my machine:

# OpenBLAS
git clone git://github.com/xianyi/OpenBLAS
cd OpenBLAS
make FC=gfortran
sudo make PREFIX=/opt/OpenBLAS/ install
cd ..
# let the system know
sudo sh -c 'echo "/opt/OpenBLAS/lib" > /etc/ld.so.conf.d/openblas.conf'
sudo ldconfig

# Numpy
git clone https://github.com/numpy/numpy
cd numpy
vim site.cfg  # and put the following content within #### in site.cfg
####
[default]
library_dirs = /opt/OpenBLAS/lib
[atlas]
atlas_libs = openblas
library_dirs = /opt/OpenBLAS/lib
[lapack]
lapack_libs = openblas
library_dirs = /opt/OpenBLAS/lib
####
export BLAS=/opt/OpenBLAS/lib/libopenblas.a
export LAPACK=/opt/OpenBLAS/lib/libopenblas.a
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/OpenBLAS/lib/
python setup.py build
sudo python setup.py install

UPDATE: The above script has been tested to work well on both 64-bit Ubuntu 12.04 and 14.04.

+2
1

, NumPy OpenBLAS, _dotblas NumPy 1.10.0, . .

+3

All Articles