Skip to content

Commit

Permalink
Transition to LinearAlgebra.BLAS.libblastrampoline instead of `Base…
Browse files Browse the repository at this point in the history
….libblas_name`

This change is in support of JuliaLang/julia#50699
  • Loading branch information
staticfloat committed Jun 10, 2024
1 parent 7369244 commit af17178
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/NNlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ using Requires
using Statistics
using Statistics: mean

const libblas = Base.libblas_name

const Numeric = Union{AbstractArray{<:T}, T} where {T<:Number}

# Include APIs
Expand Down
6 changes: 6 additions & 0 deletions src/gemm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

using LinearAlgebra.BLAS: get_num_threads, set_num_threads

if isdefined(LinearAlgebra.BLAS, :libblastrampoline)
const libblas = LinearAlgebra.BLAS.libblastrampoline
else
const libblas = Base.libblas_name
end

"""
gemm!()
Expand Down

0 comments on commit af17178

Please sign in to comment.