Skip to content

Commit 13001c0

Browse files
a few more fixes
1 parent 68f26a5 commit 13001c0

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
150150
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
151151

152152
[targets]
153-
test = ["Aqua", "Test", "IterativeSolvers", "InteractiveUtils", "JET", "KrylovKit", "KrylovPreconditioners", "Pkg", "Random", "SafeTestsets", "MultiFloats", "ForwardDiff", "HYPRE", "MPI", "BlockDiagonals", "Enzyme", "FiniteDiff", "BandedMatrices", "FastAlmostBandedMatrices", "StaticArrays", "AllocCheck", "StableRNGs", "Zygote", "RecursiveFactorization", "Sparspak", "FastLapackInterface", "SparseArrays"]
153+
test = ["Aqua", "Test", "IterativeSolvers", "InteractiveUtils", "JET", "KrylovKit", "KrylovPreconditioners", "Pkg", "Random", "SafeTestsets", "MultiFloats", "ForwardDiff", "HYPRE", "MPI", "BlockDiagonals", "FiniteDiff", "BandedMatrices", "FastAlmostBandedMatrices", "StaticArrays", "AllocCheck", "StableRNGs", "Zygote", "RecursiveFactorization", "Sparspak", "FastLapackInterface", "SparseArrays"]

test/default_algs.jl

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
using LinearSolve, RecursiveFactorization, LinearAlgebra, SparseArrays, Test, JET
1+
using LinearSolve, RecursiveFactorization, LinearAlgebra, SparseArrays, Test
2+
3+
if isempty(VERSION.prerelease)
4+
using JET
5+
end
6+
27
@test LinearSolve.defaultalg(nothing, zeros(3)).alg ===
38
LinearSolve.DefaultAlgorithmChoice.GenericLUFactorization
49
prob = LinearProblem(rand(3, 3), rand(3))
@@ -55,19 +60,23 @@ solve(prob)
5560
A = rand(4, 4)
5661
b = rand(4)
5762
prob = LinearProblem(A, b)
58-
VERSION v"1.10-" && JET.@test_opt init(prob, nothing)
59-
JET.@test_opt solve(prob, LUFactorization())
60-
JET.@test_opt solve(prob, GenericLUFactorization())
61-
@test_skip JET.@test_opt solve(prob, QRFactorization())
62-
JET.@test_opt solve(prob, DiagonalFactorization())
63-
#JET.@test_opt solve(prob, SVDFactorization())
64-
#JET.@test_opt solve(prob, KrylovJL_GMRES())
63+
if if isempty(VERSION.prerelease)
64+
JET.@test_opt init(prob, nothing)
65+
JET.@test_opt solve(prob, LUFactorization())
66+
JET.@test_opt solve(prob, GenericLUFactorization())
67+
@test_skip JET.@test_opt solve(prob, QRFactorization())
68+
JET.@test_opt solve(prob, DiagonalFactorization())
69+
#JET.@test_opt solve(prob, SVDFactorization())
70+
#JET.@test_opt solve(prob, KrylovJL_GMRES())
71+
72+
prob = LinearProblem(sparse(A), b)
73+
#JET.@test_opt solve(prob, UMFPACKFactorization())
74+
#JET.@test_opt solve(prob, KLUFactorization())
75+
#JET.@test_opt solve(prob, SparspakFactorization())
76+
#JET.@test_opt solve(prob)
77+
end
6578

6679
prob = LinearProblem(sparse(A), b)
67-
#JET.@test_opt solve(prob, UMFPACKFactorization())
68-
#JET.@test_opt solve(prob, KLUFactorization())
69-
#JET.@test_opt solve(prob, SparspakFactorization())
70-
#JET.@test_opt solve(prob)
7180
@inferred solve(prob)
7281
@inferred init(prob, nothing)
7382

0 commit comments

Comments
 (0)