[Numpy-discussion] Linking Numpy with parallel OpenBLAS

Julian Taylor jtaylor.debian at googlemail.com
Thu Oct 29 15:25:47 EDT 2015


should be possible by putting this into: ~/.numpy-site.cfg

[openblas]
libraries = openblasp

LD_PRELOAD the file should also work.


On 29.10.2015 18:25, Daπid wrote:
> I have installed all the OpenBLAS versions availables at the Fedora
> repos, that include openMP and pthreads versions. But Numpy installed by
> pip on a virtualenv seems to only link to the serial version. Is there a
> way to convince it to use the parallel one?
> 
> Here are my libraries:
> 
> (py27)[david at SQUIDS lib64]$ ls libopenblas*
> libopenblas64.a            libopenblaso64.so.0        libopenblasp64.so.0
> libopenblas64-r0.2.14.so <http://libopenblas64-r0.2.14.so>  
> libopenblaso.a             libopenblasp.a
> libopenblas64.so           libopenblaso-r0.2.14.so
> <http://libopenblaso-r0.2.14.so>    libopenblasp-r0.2.14.so
> <http://libopenblasp-r0.2.14.so>
> libopenblas64.so.0         libopenblaso.so            libopenblasp.so
> libopenblas.a              libopenblaso.so.0          libopenblasp.so.0
> libopenblaso64.a           libopenblasp64.a          
> libopenblas-r0.2.14.so <http://libopenblas-r0.2.14.so>
> libopenblaso64-r0.2.14.so <http://libopenblaso64-r0.2.14.so> 
> libopenblasp64-r0.2.14.so <http://libopenblasp64-r0.2.14.so>  libopenblas.so
> libopenblaso64.so          libopenblasp64.so          libopenblas.so.0
> 
> And importing numpy shows that the serial is the only one open:
> 
> (py27)[david at SQUIDS lib64]$ lsof libopenbl*
> lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
>       Output information may be incomplete.
> COMMAND   PID  USER  FD   TYPE DEVICE SIZE/OFF    NODE NAME
> ipython  2355 david mem    REG    8,2 32088056 2372346
> libopenblas-r0.2.14.so <http://libopenblas-r0.2.14.so>
> 
> 
> This is the output of np.show_config():
> 
> lapack_opt_info:
>     libraries = ['openblas']
>     library_dirs = ['/usr/lib64']
>     define_macros = [('HAVE_CBLAS', None)]
>     language = c
> blas_opt_info:
>     libraries = ['openblas']
>     library_dirs = ['/usr/lib64']
>     define_macros = [('HAVE_CBLAS', None)]
>     language = c
> openblas_info:
>     libraries = ['openblas']
>     library_dirs = ['/usr/lib64']
>     define_macros = [('HAVE_CBLAS', None)]
>     language = c
> openblas_lapack_info:
>     libraries = ['openblas']
>     library_dirs = ['/usr/lib64']
>     define_macros = [('HAVE_CBLAS', None)]
>     language = c
> blas_mkl_info:
>   NOT AVAILABLE
> 
> 
> Thanks,
> 
> 
> /David.
> 
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
> 




More information about the NumPy-Discussion mailing list