From 4683110093872a5a7ac162876c8956ee4c325897 Mon Sep 17 00:00:00 2001 From: Steve Kelly Date: Tue, 1 Mar 2022 17:21:47 -0500 Subject: [PATCH] update liblapack location to use libblastrampoline_jll if available --- Project.toml | 1 + src/StegrWork.jl | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 843401f..5a64cdb 100644 --- a/Project.toml +++ b/Project.toml @@ -9,6 +9,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" Requires = "ae029012-a4dd-5104-9daa-d747884805df" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" +libblastrampoline_jll = "8e850b90-86db-534c-a0d3-1478176c7d93" [compat] ArrayInterface = "3, 4" diff --git a/src/StegrWork.jl b/src/StegrWork.jl index eff726b..c44ebda 100644 --- a/src/StegrWork.jl +++ b/src/StegrWork.jl @@ -3,7 +3,13 @@ using LinearAlgebra using LinearAlgebra.BLAS: @blasfunc using LinearAlgebra: BlasInt import LinearAlgebra.LAPACK: stegr! -const liblapack = Base.liblapack_name + +if VERSION < v"1.7" + const liblapack = Base.liblapack_name +else + using libblastrampoline_jll + const liblapack = libblastrampoline_jll.libblastrampoline +end mutable struct StegrWork{T<:Real} jobz::Char