[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Newbie OpenBLAS Packaging Question



Dear John,

Le dimanche 26 juillet 2020 à 10:00 +0100, John Duffy a écrit :
> In my Debian/Ubuntu /usr/lib/aarch64-linux-gnu/openblas-serial directory I have...
> 
> -rw-r--r-- 1 root root  8435720 Jun  2 10:55 libblas.so.3
> -rw-r--r-- 1 root root 13712616 Jun  2 10:55 liblapack.so.3
> -rw-r--r-- 1 root root 14269784 Jun  2 10:55 libopenblas-r0.3.8.so
> lrwxrwxrwx 1 root root       21 Jun  2 10:55 libopenblas.so.0 -> libopenblas-r0.3.8.so
> 
> What is the difference between the libblas.so.3 and libopenblas-r0.3.8.so? I note they are not the same size.

They mostly ship the same contents, though with a different SONAME. The
libopenblas.so object is bigger because it also contains LAPACK.

> I have a horrible suspicion that I have been linking to a reference
> Blas library (the libblas.so.3), through the update-
> alternatives mechanism, and not OpenBLAS (the libopenblas.so.0 ->
> libopenblas-r0.3.8.so).

The choice via the update-alternatives mechanism does not matter much
at link time, as long as your are doing dynamic linking (and not static
linking). It only matters at runtime.

Best,

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀  https://www.debian.org

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: