@@ -4,14 +4,22 @@ using LinearSolve, LinearAlgebra, SparseArrays, Test, JET
4
4
prob = LinearProblem (rand (3 , 3 ), rand (3 ))
5
5
solve (prob)
6
6
7
- @test LinearSolve. defaultalg (nothing , zeros (50 )). alg ===
8
- LinearSolve. DefaultAlgorithmChoice. RFLUFactorization
7
+ if LinearSolve. appleaccelerate_isavailable ()
8
+ @test LinearSolve. defaultalg (nothing , zeros (50 )). alg ===
9
+ LinearSolve. DefaultAlgorithmChoice. AppleAccelerateLUFactorization
10
+ else
11
+ @test LinearSolve. defaultalg (nothing , zeros (50 )). alg ===
12
+ LinearSolve. DefaultAlgorithmChoice. RFLUFactorization
13
+ end
9
14
prob = LinearProblem (rand (50 , 50 ), rand (50 ))
10
15
solve (prob)
11
16
12
17
if LinearSolve. usemkl
13
18
@test LinearSolve. defaultalg (nothing , zeros (600 )). alg ===
14
19
LinearSolve. DefaultAlgorithmChoice. MKLLUFactorization
20
+ elseif LinearSolve. appleaccelerate_isavailable ()
21
+ @test LinearSolve. defaultalg (nothing , zeros (600 )). alg ===
22
+ LinearSolve. DefaultAlgorithmChoice. AppleAccelerateLUFactorization
15
23
else
16
24
@test LinearSolve. defaultalg (nothing , zeros (600 )). alg ===
17
25
LinearSolve. DefaultAlgorithmChoice. LUFactorization
@@ -45,7 +53,7 @@ solve(prob)
45
53
JET. @test_opt init (prob, nothing )
46
54
JET. @test_opt solve (prob, LUFactorization ())
47
55
JET. @test_opt solve (prob, GenericLUFactorization ())
48
- JET. @test_opt solve (prob, QRFactorization ())
56
+ @test_skip JET. @test_opt solve (prob, QRFactorization ())
49
57
JET. @test_opt solve (prob, DiagonalFactorization ())
50
58
# JET.@test_opt solve(prob, SVDFactorization())
51
59
# JET.@test_opt solve(prob, KrylovJL_GMRES())
0 commit comments