Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/CI_BracketingNonlinearSolve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
matrix:
version:
- "1.10"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_NonlinearSolve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- nopre
version:
- "1"
- "1.11"
- "lts"
- "pre"
os:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_NonlinearSolveBase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
matrix:
version:
- "1.10"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_NonlinearSolveFirstOrder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
matrix:
version:
- "1.10"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
matrix:
version:
- "1.10"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_NonlinearSolveQuasiNewton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
matrix:
version:
- "1.10"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_NonlinearSolveSciPy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
matrix:
version:
- "1.10"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_NonlinearSolveSpectralMethods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
matrix:
version:
- "1.10"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_SCCNonlinearSolve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
matrix:
version:
- "lts"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_SciMLJacobianOperators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
matrix:
version:
- "1.10"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_SimpleNonlinearSolve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
matrix:
version:
- "1.10"
- "1.11"
- "1"
os:
- ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion lib/NonlinearSolveBase/ext/NonlinearSolveBaseEnzymeExt.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module NonlinearSolveBaseEnzymeExt

@static if isempty(VERSION.prerelease)
@static if isempty(VERSION.prerelease) && VERSION < v"1.12"
using NonlinearSolveBase
import SciMLBase: SciMLBase, value
using Enzyme
Expand Down
18 changes: 9 additions & 9 deletions lib/NonlinearSolveFirstOrder/test/rootfind_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ end
using Zygote, ForwardDiff, FiniteDiff

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

u0s=([1.0, 1.0], @SVector[1.0, 1.0], 1.0)

# Filter autodiff backends based on Julia version
autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, AutoEnzyme())
end

Expand Down Expand Up @@ -110,7 +110,7 @@ end
using Zygote, ForwardDiff, FiniteDiff

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

Expand All @@ -121,7 +121,7 @@ end

# Filter autodiff backends based on Julia version
autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, AutoEnzyme())
end

Expand Down Expand Up @@ -207,7 +207,7 @@ end
using Zygote, ForwardDiff, FiniteDiff

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

Expand All @@ -219,7 +219,7 @@ end

# Filter autodiff backends based on Julia version
autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, AutoEnzyme())
end

Expand Down Expand Up @@ -340,13 +340,13 @@ end
using Zygote, ForwardDiff, FiniteDiff

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

# Filter autodiff backends based on Julia version
autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, AutoEnzyme())
end

Expand Down Expand Up @@ -451,7 +451,7 @@ end

# Filter autodiff backends based on Julia version
autodiff_backends=[AutoForwardDiff(), AutoFiniteDiff(), AutoZygote()]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, AutoEnzyme())
end

Expand Down
6 changes: 3 additions & 3 deletions lib/NonlinearSolveHomotopyContinuation/test/allroots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using ADTypes
import NaNMath

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

Expand All @@ -20,7 +20,7 @@ alg = HomotopyContinuationJL{true}(; threading = false)
end
# Filter autodiff backends based on Julia version
autodiff_backends = [(AutoForwardDiff(), "no jac - forwarddiff"), (jac, "jac")]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, (AutoEnzyme(), "no jac - enzyme"))
end

Expand Down Expand Up @@ -120,7 +120,7 @@ vector_test_cases = [
(f, AutoForwardDiff(), "oop + forwarddiff"), (f, fjac, "oop + jac"),
(f!, AutoForwardDiff(), "iip + forwarddiff"), (f!, fjac!, "iip + jac")
]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(vector_test_cases, (f, AutoEnzyme(), "oop + enzyme"))
push!(vector_test_cases, (f!, AutoEnzyme(), "iip + enzyme"))
end
Expand Down
4 changes: 2 additions & 2 deletions lib/NonlinearSolveHomotopyContinuation/test/single_root.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ alg = HomotopyContinuationJL{false}(; threading = false)
end
# Filter autodiff backends based on Julia version
autodiff_backends = [(AutoForwardDiff(), "no jac - forwarddiff"), (jac, "jac")]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, (AutoEnzyme(), "no jac - enzyme"))
end

Expand Down Expand Up @@ -105,7 +105,7 @@ vector_test_cases = [
(f, AutoForwardDiff(), "oop + forwarddiff"), (f, jac, "oop + jac"),
(f!, AutoForwardDiff(), "iip + forwarddiff"), (f!, jac!, "iip + jac")
]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(vector_test_cases, (f, AutoEnzyme(), "oop + enzyme"))
push!(vector_test_cases, (f!, AutoEnzyme(), "iip + enzyme"))
end
Expand Down
12 changes: 6 additions & 6 deletions lib/NonlinearSolveQuasiNewton/test/core_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ end
using Zygote, ForwardDiff, FiniteDiff

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

u0s=([1.0, 1.0], @SVector[1.0, 1.0], 1.0)

# Filter autodiff backends based on Julia version
autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, AutoEnzyme())
end

Expand Down Expand Up @@ -100,13 +100,13 @@ end
using Zygote, ForwardDiff, FiniteDiff

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

# Filter autodiff backends based on Julia version
autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, AutoEnzyme())
end

Expand Down Expand Up @@ -186,13 +186,13 @@ end
using Zygote, ForwardDiff, FiniteDiff

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

# Filter autodiff backends based on Julia version
autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, AutoEnzyme())
end

Expand Down
18 changes: 9 additions & 9 deletions lib/SciMLJacobianOperators/test/core_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using SciMLJacobianOperators

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

Expand All @@ -14,7 +14,7 @@
AutoTracker(),
AutoFiniteDiff()
]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(reverse_ADs, AutoEnzyme())
push!(reverse_ADs, AutoEnzyme(; mode = Enzyme.Reverse))
end
Expand All @@ -23,7 +23,7 @@
AutoForwardDiff(),
AutoFiniteDiff()
]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(forward_ADs, AutoEnzyme())
push!(forward_ADs, AutoEnzyme(; mode = Enzyme.Forward))
end
Expand Down Expand Up @@ -102,15 +102,15 @@ end
using SciMLJacobianOperators

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

reverse_ADs = [
AutoReverseDiff(),
AutoFiniteDiff()
]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(reverse_ADs, AutoEnzyme())
push!(reverse_ADs, AutoEnzyme(; mode = Enzyme.Reverse))
end
Expand All @@ -119,7 +119,7 @@ end
AutoForwardDiff(),
AutoFiniteDiff()
]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(forward_ADs, AutoEnzyme())
push!(forward_ADs, AutoEnzyme(; mode = Enzyme.Forward))
end
Expand Down Expand Up @@ -204,7 +204,7 @@ end
using SciMLJacobianOperators

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

Expand All @@ -214,7 +214,7 @@ end
AutoReverseDiff(),
AutoFiniteDiff()
]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(reverse_ADs, AutoEnzyme())
push!(reverse_ADs, AutoEnzyme(; mode = Enzyme.Reverse))
end
Expand All @@ -223,7 +223,7 @@ end
AutoForwardDiff(),
AutoFiniteDiff()
]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(forward_ADs, AutoEnzyme())
push!(forward_ADs, AutoEnzyme(; mode = Enzyme.Forward))
end
Expand Down
4 changes: 2 additions & 2 deletions lib/SimpleNonlinearSolve/test/core/rootfind_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using ADTypes, PolyesterForwardDiff, ReverseDiff

# Conditionally import Enzyme only if not on Julia prerelease
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
using Enzyme
end

Expand Down Expand Up @@ -59,7 +59,7 @@ end
AutoReverseDiff(),
nothing
]
if isempty(VERSION.prerelease)
if isempty(VERSION.prerelease) && VERSION < v"1.12"
push!(autodiff_backends, AutoEnzyme())
end

Expand Down
Loading
Loading