Skip to content

Commit

Permalink
Guess it's transposed?
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 9, 2023
1 parent 78158af commit ffc0574
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmarks/cudalu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ end
algs = [MKLLUFactorization(), CUDAOffloadFactorization()]
res = [Float32[] for i in 1:length(algs)]

ns = 200:400:20000
ns = 200:400:10000
for i in 1:length(ns)
n = ns[i]
@info "$n × $n"
Expand Down
4 changes: 2 additions & 2 deletions ext/LinearSolveMKLExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ function SciMLBase.solve!(cache::LinearCache, alg::MKLLUFactorization;
m, n = size(A, 1), size(A, 2)
if m > n
Bc = copy(cache.b)
getrs!('N', A.factors, A.ipiv, Bc; info)
getrs!('T', A.factors, A.ipiv, Bc; info)
return copyto!(cache.u, 1, Bc, 1, n)

Check warning on line 114 in ext/LinearSolveMKLExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/LinearSolveMKLExt.jl#L108-L114

Added lines #L108 - L114 were not covered by tests
else
copyto!(cache.u, cache.b)
getrs!('N', A.factors, A.ipiv, cache.u; info)
getrs!('T', A.factors, A.ipiv, cache.u; info)

Check warning on line 117 in ext/LinearSolveMKLExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/LinearSolveMKLExt.jl#L116-L117

Added lines #L116 - L117 were not covered by tests
end

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

Check warning on line 120 in ext/LinearSolveMKLExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/LinearSolveMKLExt.jl#L120

Added line #L120 was not covered by tests
Expand Down

0 comments on commit ffc0574

Please sign in to comment.