scalanlp / breeze

Breeze is/was a numerical processing library for Scala.
https://www.scalanlp.org
Apache License 2.0
3.45k stars 693 forks source link

Linking to openblas #792

Closed akopich closed 4 years ago

akopich commented 4 years ago

Hi all.

I'm struggling to make breeze link to openblas. I have breeze-natives dependency included (replacing it with an explicit dependence on netlib-java doesn't help). Apparently, the linker sees blas

# ldconfig -p  | grep blas 
        libopenblas.so.3 (libc6,x86-64) => /usr/lib/libopenblas.so.3
        libopenblas.so (libc6,x86-64) => /usr/lib/libopenblas.so
        liblasem-0.4.so.4 (libc6,x86-64) => /usr/lib/liblasem-0.4.so.4
        liblasem-0.4.so (libc6,x86-64) => /usr/lib/liblasem-0.4.so
        libcblas.so.3 (libc6,x86-64) => /usr/lib/libcblas.so.3
        libcblas.so (libc6,x86-64) => /usr/lib/libcblas.so

yet

Sep 05, 2020 9:51:29 AM com.github.fommil.netlib.BLAS <clinit>
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeSystemBLAS
Sep 05, 2020 9:51:29 AM com.github.fommil.netlib.BLAS <clinit>
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeRefBLAS
Sep 05, 2020 9:51:31 AM com.github.fommil.netlib.LAPACK <clinit>
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeSystemLAPACK
Sep 05, 2020 9:51:31 AM com.github.fommil.netlib.LAPACK <clinit>
WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeRefLAPACK

I'm running the app with sbt run under Linux.

akopich commented 4 years ago

NVM, I needed to install libgfortran3 (and the "3" part is important).

dlwh commented 4 years ago

Sorry for being slow. Yeah, this is a common issue. I should add an FAQ or something.

On Sun, Sep 6, 2020 at 12:38 PM Valeriy Avanesov notifications@github.com wrote:

NVM, I needed to install libgfortran3 (and the "3" part is important).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/scalanlp/breeze/issues/792#issuecomment-687880920, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACLIM3564CTJFHPCKHNQTSEPQMNANCNFSM4Q22DL2Q .

fdietze commented 3 years ago

libgfortran3 is not available in newer ubuntu distributions anymore...

https://packages.ubuntu.com/search?keywords=libgfortran3

What should I do in this case?