Skip to content

Commit 381a41f

Browse files
authored
Transition to LinearAlgebra.BLAS.libblastrampoline instead of Base.libblas_name (#589)
This change is in support of JuliaLang/julia#50699
1 parent 7369244 commit 381a41f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/NNlib.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ using Requires
1818
using Statistics
1919
using Statistics: mean
2020

21-
const libblas = Base.libblas_name
22-
2321
const Numeric = Union{AbstractArray{<:T}, T} where {T<:Number}
2422

2523
# Include APIs

src/gemm.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
using LinearAlgebra.BLAS: get_num_threads, set_num_threads
55

6+
if isdefined(LinearAlgebra.BLAS, :libblastrampoline)
7+
const libblas = LinearAlgebra.BLAS.libblastrampoline
8+
else
9+
const libblas = Base.libblas_name
10+
end
11+
612
"""
713
gemm!()
814

0 commit comments

Comments
 (0)