JuliaLinearAlgebra / libblastrampoline

Using PLT trampolines to provide a BLAS and LAPACK demuxing library.
MIT License
66 stars 17 forks source link

Using different BLAS+LAPACK for Julia versions before and after 1.7 #65

Closed andreasvarga closed 2 years ago

andreasvarga commented 2 years ago

I implemented some LAPACK wrappers for the needs in MatrixEquations and MatrixPencils. Recently I changed the setting of library from

const liblapack = Base.liblapack_name

to

const liblapack = VERSION < v"1.7" ? Base.liblapack_name : "libblastrampoline"

I wonder however if this is the right way to do, because recently I encountered unexpected failures of MatrixEquations on the nightly runs, which I am trying to fix (one idea is just the possibly wrong setting of dependence of BLAS+LAPACK).

jishnub commented 2 years ago

Is this the recommended usage?

andreasvarga commented 2 years ago

I got no answer to my question, but this is the way I am using the packages to keep compatibility with Julia 1,6 (LTS).