Skip to content

Commit 3ea27db

Browse files
committed
Changed libblas to libblastrampoline
1 parent 51595b7 commit 3ea27db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gemm.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## Borrowed from Knet.jl, adapted for compile-time constants
33

44
using LinearAlgebra
5-
using LinearAlgebra.BLAS: libblas, BlasInt, @blasfunc
5+
using LinearAlgebra.BLAS: libblastrampoline, BlasInt, @blasfunc
66

77
using Compat: get_num_threads, set_num_threads # needs Compat 3.13, for any Julia < 1.6
88

@@ -48,7 +48,7 @@ for (gemm, elt) in gemm_datatype_mappings
4848
ldb = N
4949
end
5050
ldc = M
51-
ccall((@blasfunc($(gemm)), libblas), Nothing,
51+
ccall((@blasfunc($(gemm)), libblastrampoline), Nothing,
5252
(Ref{UInt8}, Ref{UInt8}, Ref{BlasInt}, Ref{BlasInt},
5353
Ref{BlasInt}, Ref{$elt}, Ptr{$elt}, Ref{BlasInt},
5454
Ptr{$elt}, Ref{BlasInt}, Ref{$elt}, Ptr{$elt},
@@ -106,7 +106,7 @@ for (gemm, elt) in gemm_datatype_mappings
106106
ptrBk = ptrB + (k-1) * strB * sizeof($elt)
107107
ptrCk = ptrC + (k-1) * strC * sizeof($elt)
108108

109-
ccall((@blasfunc($(gemm)), libblas), Nothing,
109+
ccall((@blasfunc($(gemm)), libblastrampoline), Nothing,
110110
(Ref{UInt8}, Ref{UInt8}, Ref{BlasInt}, Ref{BlasInt},
111111
Ref{BlasInt}, Ref{$elt}, Ptr{$elt}, Ref{BlasInt},
112112
Ptr{$elt}, Ref{BlasInt}, Ref{$elt}, Ptr{$elt},
@@ -128,7 +128,7 @@ for (gemm, elt) in gemm_datatype_mappings
128128
ptrBk = ptrB + (k-1) * strB * sizeof($elt)
129129
ptrCk = ptrC + (k-1) * strC * sizeof($elt)
130130

131-
ccall((@blasfunc($(gemm)), libblas), Nothing,
131+
ccall((@blasfunc($(gemm)), libblastrampoline), Nothing,
132132
(Ref{UInt8}, Ref{UInt8}, Ref{BlasInt}, Ref{BlasInt},
133133
Ref{BlasInt}, Ref{$elt}, Ptr{$elt}, Ref{BlasInt},
134134
Ptr{$elt}, Ref{BlasInt}, Ref{$elt}, Ptr{$elt},

0 commit comments

Comments
 (0)