[Numpy-discussion] NumPy 1.15.0rc1 released

Tiziano Zito opossumnano at gmail.com
Mon Jul 9 05:22:34 EDT 2018

On Sun 08 Jul, 22:35 -0400, Sandro Tosi <sandro.tosi at gmail.com> wrote:
>> The Python versions supported by this release are 2.7, 3.4-3.6.  The wheels are linked with
>> OpenBLAS 3.0, which should fix some of the linalg problems reported for NumPy 1.14,
>> and the source archives were created using Cython 0.28.2 and should work with the upcoming
>> Python 3.7.
>just checking: in Debian we're currently linking against
>libblas/liblapack (as available from http://www.netlib.org/lapack/) -
>should we start investigating switching to OpenBLAS?

Well, as far as I can tell numpy in Debian is built using the /etc/alternatives method, i.e. you can choose which BLAS implementation to use at run time if more then one implementation is installed. In my case, it links to openblas already:

$ ldd /usr/lib/python3/dist-packages/numpy/core/multiarray.cpython-36m-x86_64-linux-gnu.so
        linux-vdso.so.1 (0x00007ffe3bf7b000)
        libblas.so.3 => /usr/lib/x86_64-linux-gnu/libblas.so.3 (0x00007f23df471000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f23debaa000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f23de98c000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f23de5d2000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f23df2e9000)
        libopenblas.so.0 => /usr/lib/x86_64-linux-gnu/libopenblas.so.0 (0x00007f23dc35f000)
        libgfortran.so.4 => /usr/lib/x86_64-linux-gnu/libgfortran.so.4 (0x00007f23dbf8b000)
        libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f23dbd4b000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f23dbb2d000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f23db915000)
$ ls -l /usr/lib/x86_64-linux-gnu/libblas.so.3
lrwxrwxrwx 1 root root 47 Sep 11  2017 /usr/lib/x86_64-linux-gnu/libblas.so.3 -> /etc/alternatives/libblas.so.3-x86_64-linux-gnu
$ ls -l /etc/alternatives/libblas.so.3-x86_64-linux-gnu
lrwxrwxrwx 1 root root 47 Sep 11  2017 /etc/alternatives/libblas.so.3-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
$ update-alternatives --display libblas.so.3-x86_64-linux-gnu
libblas.so.3-x86_64-linux-gnu - auto mode
  link best version is /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
  link currently points to /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
  link libblas.so.3-x86_64-linux-gnu is /usr/lib/x86_64-linux-gnu/libblas.so.3
/usr/lib/x86_64-linux-gnu/atlas/libblas.so.3 - priority 35
/usr/lib/x86_64-linux-gnu/blas/libblas.so.3 - priority 10
/usr/lib/x86_64-linux-gnu/openblas/libblas.so.3 - priority 40

So, it seems to me there's no problem to solve in Debian?


More information about the NumPy-Discussion mailing list