Skip to content

Commit

Permalink
fix test for MKL
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 4, 2023
1 parent 50bd502 commit 0a4f96a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/default_algs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ solve(prob)
prob = LinearProblem(rand(50, 50), rand(50))
solve(prob)

@test LinearSolve.defaultalg(nothing, zeros(600)).alg ===
LinearSolve.DefaultAlgorithmChoice.GenericLUFactorization
if LinearSolve.usemkl
@test LinearSolve.defaultalg(nothing, zeros(600)).alg ===
LinearSolve.DefaultAlgorithmChoice.MKLLUFactorization
else
@test LinearSolve.defaultalg(nothing, zeros(600)).alg ===
LinearSolve.DefaultAlgorithmChoice.LUFactorization
end

prob = LinearProblem(rand(600, 600), rand(600))
solve(prob)

Expand Down

0 comments on commit 0a4f96a

Please sign in to comment.