Skip to content

Commit 0a4f96a

Browse files
fix test for MKL
1 parent 50bd502 commit 0a4f96a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/default_algs.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ solve(prob)
99
prob = LinearProblem(rand(50, 50), rand(50))
1010
solve(prob)
1111

12-
@test LinearSolve.defaultalg(nothing, zeros(600)).alg ===
13-
LinearSolve.DefaultAlgorithmChoice.GenericLUFactorization
12+
if LinearSolve.usemkl
13+
@test LinearSolve.defaultalg(nothing, zeros(600)).alg ===
14+
LinearSolve.DefaultAlgorithmChoice.MKLLUFactorization
15+
else
16+
@test LinearSolve.defaultalg(nothing, zeros(600)).alg ===
17+
LinearSolve.DefaultAlgorithmChoice.LUFactorization
18+
end
19+
1420
prob = LinearProblem(rand(600, 600), rand(600))
1521
solve(prob)
1622

0 commit comments

Comments
 (0)