@@ -4,14 +4,22 @@ using LinearSolve, LinearAlgebra, SparseArrays, Test, JET
44prob = LinearProblem (rand (3 , 3 ), rand (3 ))
55solve (prob)
66
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
914prob = LinearProblem (rand (50 , 50 ), rand (50 ))
1015solve (prob)
1116
1217if LinearSolve. usemkl
1318 @test LinearSolve. defaultalg (nothing , zeros (600 )). alg ===
1419 LinearSolve. DefaultAlgorithmChoice. MKLLUFactorization
20+ elseif LinearSolve. appleaccelerate_isavailable ()
21+ @test LinearSolve. defaultalg (nothing , zeros (600 )). alg ===
22+ LinearSolve. DefaultAlgorithmChoice. AppleAccelerateLUFactorization
1523else
1624 @test LinearSolve. defaultalg (nothing , zeros (600 )). alg ===
1725 LinearSolve. DefaultAlgorithmChoice. LUFactorization
@@ -45,7 +53,7 @@ solve(prob)
4553 JET. @test_opt init (prob, nothing )
4654 JET. @test_opt solve (prob, LUFactorization ())
4755 JET. @test_opt solve (prob, GenericLUFactorization ())
48- JET. @test_opt solve (prob, QRFactorization ())
56+ @test_skip JET. @test_opt solve (prob, QRFactorization ())
4957 JET. @test_opt solve (prob, DiagonalFactorization ())
5058 # JET.@test_opt solve(prob, SVDFactorization())
5159 # JET.@test_opt solve(prob, KrylovJL_GMRES())
0 commit comments