luhenry / netlib

An high-performance, hardware-accelerated implementation of Netlib in Java
Other
64 stars 12 forks source link

Cannot use OpenBlas on Mac: Lapack references dgegs but this method is deprecated and not available anymore #9

Closed pmeheut closed 2 years ago

pmeheut commented 2 years ago

I've managed to compile everything on BigSur and had to make some changes but everything works fine until I try to use a native implementation of Lapack. It tries to load dgegs but this symbol has been deprecated: see https://docs.oracle.com/cd/E19957-01/816-2461/dgegs.html for instance. Any solution?

luhenry commented 2 years ago

Hi,

The fix would likely consist in changing slightly how we dlsym symbols. Instead of eagerly loading all symbols and failing if any of them aren't available, we could instead try to load the symbol at startup, but only fail by throwing a Java exception when the symbol isn't available.

Would that fit your use case?

Thanks

pmeheut commented 2 years ago

Yes it would work. Thanks.

luhenry commented 2 years ago

Fixed in https://github.com/luhenry/netlib/commit/8f7aa38400bc9668a3e028ffe72381692d305966