We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 683d5c3 commit 16c775eCopy full SHA for 16c775e
ext/LinearSolveMKLExt.jl
@@ -2,7 +2,8 @@ module LinearSolveMKLExt
2
3
using MKL_jll
4
using LinearAlgebra: BlasInt, LU
5
-using LinearAlgebra.LAPACK: require_one_based_indexing, chkfinite, chkstride1, chkargsok
+using LinearAlgebra.LAPACK: require_one_based_indexing, chkfinite, chkstride1,
6
+ @blasfunc, chkargsok
7
using LinearAlgebra
8
const usemkl = MKL_jll.is_available()
9
@@ -15,12 +16,7 @@ function getrf!(A::AbstractMatrix{<:Float64}; ipiv = similar(A, BlasInt, min(siz
15
16
chkstride1(A)
17
m, n = size(A)
18
lda = max(1,stride(A, 2))
-
19
- if isempty(ipiv)
20
- ipiv = similar(A, BlasInt, min(size(A,1),size(A,2)))
21
- end
22
23
- ccall((:dgetrf_, MKL_jll.libmkl_rt), Cvoid,
+ ccall((@blasfunc(dgetrf_), MKL_jll.libmkl_rt), Cvoid,
24
(Ref{BlasInt}, Ref{BlasInt}, Ptr{Float64},
25
Ref{BlasInt}, Ptr{BlasInt}, Ptr{BlasInt}),
26
m, n, A, lda, ipiv, info)
test/basictests.jl
@@ -207,6 +207,7 @@ end
207
QRFactorization(),
208
SVDFactorization(),
209
RFLUFactorization(),
210
+ MKLLUFactorization(),
211
LinearSolve.defaultalg(prob1.A, prob1.b))
212
@testset "$alg" begin
213
test_interface(alg, prob1, prob2)
0 commit comments