Skip to content

Commit ffc0574

Browse files
Guess it's transposed?
1 parent 78158af commit ffc0574

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

benchmarks/cudalu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ end
2121
algs = [MKLLUFactorization(), CUDAOffloadFactorization()]
2222
res = [Float32[] for i in 1:length(algs)]
2323

24-
ns = 200:400:20000
24+
ns = 200:400:10000
2525
for i in 1:length(ns)
2626
n = ns[i]
2727
@info "$n × $n"

ext/LinearSolveMKLExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ function SciMLBase.solve!(cache::LinearCache, alg::MKLLUFactorization;
110110
m, n = size(A, 1), size(A, 2)
111111
if m > n
112112
Bc = copy(cache.b)
113-
getrs!('N', A.factors, A.ipiv, Bc; info)
113+
getrs!('T', A.factors, A.ipiv, Bc; info)
114114
return copyto!(cache.u, 1, Bc, 1, n)
115115
else
116116
copyto!(cache.u, cache.b)
117-
getrs!('N', A.factors, A.ipiv, cache.u; info)
117+
getrs!('T', A.factors, A.ipiv, cache.u; info)
118118
end
119119

120120
SciMLBase.build_linear_solution(alg, cache.u, nothing, cache)

0 commit comments

Comments
 (0)