From f6208f9c79893ac185518627837152b395425315 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Fri, 26 Feb 2021 16:39:57 -0800 Subject: [PATCH] [LinearAlgebra] Add `libblas` and `liblapack` bindings in again Some packages use these; rather than create unnecesary package churn, let's just define them again and add a note that serious applications should use the much richer detail available from `BLAS.get_config()`. --- stdlib/LinearAlgebra/src/blas.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stdlib/LinearAlgebra/src/blas.jl b/stdlib/LinearAlgebra/src/blas.jl index 074197176d38f..a31a7349b189b 100644 --- a/stdlib/LinearAlgebra/src/blas.jl +++ b/stdlib/LinearAlgebra/src/blas.jl @@ -66,6 +66,13 @@ export const libblastrampoline = "libblastrampoline" libblastrampoline_handle = C_NULL +# Legacy bindings that some packages (such as NNlib.jl) use. +# We maintain these for backwards-compatibility but new packages +# should not look at these, instead preferring to parse the output +# of BLAS.get_config() +const libblas = libblastrampoline +const liblapack = libblastrampoline + import LinearAlgebra import LinearAlgebra: BlasReal, BlasComplex, BlasFloat, BlasInt, DimensionMismatch, checksquare, stride1, chkstride1, axpy!