Skip to content

Commit

Permalink
Correct setting of liblapack.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvarga committed Nov 28, 2023
1 parent 0ddb1e3 commit 96abd51
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MatrixEquations"
uuid = "99c1a7ee-ab34-5fd5-8076-27c950a045f4"
authors = ["Andreas Varga <varga.andreas@gmail.com>"]
version = "2.3.1"
version = "2.3.2"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
3 changes: 3 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release Notes

## Version 2.3.2
Version bump to correct setting of `liblapack`.

## Version 2.3.1
Patch release to optimize array allocations in the function `cgls`.

Expand Down
13 changes: 10 additions & 3 deletions src/lapackutil.jl
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
module LapackUtil

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


import LinearAlgebra.BLAS.@blasfunc

using LinearAlgebra
import LinearAlgebra: BlasFloat, BlasInt, BlasReal, BlasComplex, LAPACKException,
DimensionMismatch, SingularException, PosDefException, chkstride1, checksquare

using Base: iszero, has_offset_axes

export tgsyl!, lanv2, ladiv, lag2, lacn2!

@static if VERSION < v"1.7"
using LinearAlgebra.LAPACK: liblapack
elseif VERSION < v"1.9"
const liblapack = "libblastrampoline"
else
const liblapack = LinearAlgebra.libblastrampoline
end


function chklapackerror(ret::BlasInt)
ret == 0 && return
ret < 0 ? throw(ArgumentError("invalid argument #$(-ret) to LAPACK call")) : throw(LAPACKException(ret))
Expand Down

0 comments on commit 96abd51

Please sign in to comment.