Skip to content

Commit

Permalink
Merge pull request #13 from theabhirath/master
Browse files Browse the repository at this point in the history
Use Base.libblas_name for compatibility with Julia master
  • Loading branch information
chengchingwen authored Mar 19, 2022
2 parents 6c1de87 + c7c4a54 commit 58c8496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/NeuralAttentionlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import Adapt: adapt_structure, adapt

import Base

const libblas = Base.libblas_name

export attention, generic_attention

include("./utils.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/matmul/gemm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ for (gemm, elty) in NNlib.gemm_datatype_mappings
ptrB::Ptr{$elty}, ldb::Int, beta::($elty),
ptrC::Ptr{$elty}, ldc::Int)

ccall((BLAS.@blasfunc($gemm), BLAS.libblas), Nothing,
ccall((BLAS.@blasfunc($gemm), libblas), Nothing,
(Ref{UInt8}, Ref{UInt8}, Ref{BLAS.BlasInt}, Ref{BLAS.BlasInt}, Ref{BLAS.BlasInt},
Ref{$elty}, Ptr{$elty}, Ref{BLAS.BlasInt},
Ptr{$elty}, Ref{BLAS.BlasInt}, Ref{$elty},
Expand Down

0 comments on commit 58c8496

Please sign in to comment.