From 9f797858dbc4e26a8cc89f640ea9b3073659c83c Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Mon, 28 Feb 2022 15:04:00 -0500 Subject: [PATCH 1/3] Remove BLAS.vendor() that was deprecated in 1.7 --- stdlib/LinearAlgebra/src/blas.jl | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/stdlib/LinearAlgebra/src/blas.jl b/stdlib/LinearAlgebra/src/blas.jl index 1a2464d482050..3679c92ff8b88 100644 --- a/stdlib/LinearAlgebra/src/blas.jl +++ b/stdlib/LinearAlgebra/src/blas.jl @@ -77,17 +77,6 @@ Return an object representing the current `libblastrampoline` configuration. """ get_config() = lbt_get_config() -# We hard-lock `vendor()` to `openblas(64)` here to satisfy older code, but all new code should use -# `get_config()` since it is now possible to have multiple vendors loaded at once. -function vendor() - Base.depwarn("`vendor()` is deprecated, use `BLAS.get_config()` and inspect the output instead", :vendor; force=true) - if USE_BLAS64 - return :openblas64 - else - return :openblas - end -end - if USE_BLAS64 macro blasfunc(x) return Expr(:quote, Symbol(x, "64_")) From dcdddedbad4d209ca7078e2856424bd93e099ec5 Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Tue, 1 Mar 2022 09:57:47 -0500 Subject: [PATCH 2/3] Make vendor() an error --- stdlib/LinearAlgebra/src/blas.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/LinearAlgebra/src/blas.jl b/stdlib/LinearAlgebra/src/blas.jl index 3679c92ff8b88..c109b533ece3d 100644 --- a/stdlib/LinearAlgebra/src/blas.jl +++ b/stdlib/LinearAlgebra/src/blas.jl @@ -77,6 +77,8 @@ Return an object representing the current `libblastrampoline` configuration. """ get_config() = lbt_get_config() +vendor() = error("`vendor()` is deprecated, use `BLAS.get_config()` instead") + if USE_BLAS64 macro blasfunc(x) return Expr(:quote, Symbol(x, "64_")) From e52fa731d310c83a05c2981f225f9f19a98cf185 Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Mon, 28 Feb 2022 15:04:00 -0500 Subject: [PATCH 3/3] Remove BLAS.vendor() that was deprecated in 1.7 --- stdlib/LinearAlgebra/src/blas.jl | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/stdlib/LinearAlgebra/src/blas.jl b/stdlib/LinearAlgebra/src/blas.jl index 1a2464d482050..3679c92ff8b88 100644 --- a/stdlib/LinearAlgebra/src/blas.jl +++ b/stdlib/LinearAlgebra/src/blas.jl @@ -77,17 +77,6 @@ Return an object representing the current `libblastrampoline` configuration. """ get_config() = lbt_get_config() -# We hard-lock `vendor()` to `openblas(64)` here to satisfy older code, but all new code should use -# `get_config()` since it is now possible to have multiple vendors loaded at once. -function vendor() - Base.depwarn("`vendor()` is deprecated, use `BLAS.get_config()` and inspect the output instead", :vendor; force=true) - if USE_BLAS64 - return :openblas64 - else - return :openblas - end -end - if USE_BLAS64 macro blasfunc(x) return Expr(:quote, Symbol(x, "64_"))