Skip to content

Commit a074f88

Browse files
authored
Drop support for Julia 1.6 (#550)
* Drop support for Julia 1.6 * Fix DIT
1 parent e52dddf commit a074f88

41 files changed

Lines changed: 142 additions & 214 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/Test.yml

Lines changed: 10 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ jobs:
2929
matrix:
3030
version:
3131
- "1.10" # TODO: 1 (as of 2024.10.08, 1 means 1.11 and we're not ready yet)
32-
- "lts"
33-
- "pre"
32+
- "1.11"
3433
group:
3534
- Misc/Internals
3635
- Misc/DifferentiateWith
@@ -51,50 +50,22 @@ jobs:
5150
- Back/Zygote
5251
- Down/Flux
5352
- Down/Lux
54-
skip_lts:
55-
- ${{ github.event.pull_request.draft }}
5653
skip_pre:
5754
- ${{ github.event.pull_request.draft }}
5855
exclude:
59-
- skip_lts: true
60-
version: "lts"
6156
- skip_pre: true
62-
version: "pre"
63-
# lts
64-
- version: "lts"
65-
group: Back/ChainRulesBackends
66-
- version: "lts"
67-
group: Back/Enzyme
68-
- version: "lts"
69-
group: Back/FiniteDiff
70-
- version: "lts"
71-
group: Back/Mooncake
72-
- version: "lts"
73-
group: Back/PolyesterForwardDiff
74-
- version: "lts"
75-
group: Back/SecondOrder
76-
- version: "lts"
77-
group: Back/SymbolicBackends
78-
- version: "lts"
79-
group: Misc/Internals
80-
- version: "lts"
81-
group: Misc/SparsityDetector
82-
- version: "lts"
83-
group: Down/Flux
84-
- version: "lts"
85-
group: Down/Lux
86-
# pre-release
87-
- version: "pre"
57+
version: "1.11"
58+
- version: "1.11"
8859
group: Back/ChainRulesBackends
89-
- version: "pre"
60+
- version: "1.11"
9061
group: Back/Enzyme
91-
- version: "pre"
62+
- version: "1.11"
9263
group: Back/Mooncake
93-
- version: "pre"
64+
- version: "1.11"
9465
group: Back/SecondOrder
95-
- version: "pre"
66+
- version: "1.11"
9667
group: Misc/Internals
97-
- version: "pre"
68+
- version: "1.11"
9869
group: Misc/SparsityDetector
9970
env:
10071
JULIA_DI_TEST_GROUP: ${{ matrix.group }}
@@ -135,26 +106,17 @@ jobs:
135106
matrix:
136107
version:
137108
- "1.10" # TODO: 1
138-
- "lts"
139-
- "pre"
109+
- "1.11"
140110
group:
141111
- Formalities
142112
- Zero
143113
- Standard
144114
- Weird
145-
skip_lts:
146-
- ${{ github.event.pull_request.draft }}
147115
skip_pre:
148116
- ${{ github.event.pull_request.draft }}
149117
exclude:
150-
- skip_lts: true
151-
version: "lts"
152118
- skip_pre: true
153-
version: "pre"
154-
- version: "lts"
155-
group: Formalities
156-
- version: "lts"
157-
group: Weird
119+
version: "1.11"
158120
env:
159121
JULIA_DIT_TEST_GROUP: ${{ matrix.group }}
160122
steps:

DifferentiationInterface/Project.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name = "DifferentiationInterface"
22
uuid = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
33
authors = ["Guillaume Dalle", "Adrian Hill"]
4-
version = "0.6.7"
4+
version = "0.6.8"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
8-
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
98
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
10-
PackageExtensionCompat = "65ce6f38-6b18-4e1d-a461-8949797d7930"
119

1210
[weakdeps]
1311
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
@@ -46,7 +44,6 @@ DifferentiationInterfaceZygoteExt = ["Zygote", "ForwardDiff"]
4644
[compat]
4745
ADTypes = "1.9.0"
4846
ChainRulesCore = "1.23.0"
49-
Compat = "3.46,4.2"
5047
Diffractor = "=0.2.6"
5148
Enzyme = "0.13.6"
5249
FastDifferentiation = "0.4.1"
@@ -55,7 +52,6 @@ FiniteDifferences = "0.12.31"
5552
ForwardDiff = "0.10.36"
5653
LinearAlgebra = "<0.0.1,1"
5754
Mooncake = "0.4.0"
58-
PackageExtensionCompat = "1.0.2"
5955
PolyesterForwardDiff = "0.1.2"
6056
ReverseDiff = "1.15.1"
6157
SparseArrays = "<0.0.1,1"

DifferentiationInterface/docs/src/explanation/backends.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ We support the following dense backend choices from [ADTypes.jl](https://github.
1818
- [`AutoTracker`](@extref ADTypes.AutoTracker)
1919
- [`AutoZygote`](@extref ADTypes.AutoZygote)
2020

21-
!!! note
22-
DifferentiationInterface.jl itself is compatible with Julia 1.6, the Long Term Support (LTS) version of the language.
23-
However, we were only able to test the following backends on Julia 1.6:
24-
- `AutoFiniteDifferences`
25-
- `AutoForwardDiff`
26-
- `AutoReverseDiff`
27-
- `AutoTracker`
28-
- `AutoZygote`
29-
We strongly recommend that users upgrade to Julia 1.10 or above, where all backends are tested.
30-
3121
## Features
3222

3323
Given a backend object, you can use:

DifferentiationInterface/ext/DifferentiationInterfaceChainRulesCoreExt/DifferentiationInterfaceChainRulesCoreExt.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ using ChainRulesCore:
99
RuleConfig,
1010
frule_via_ad,
1111
rrule_via_ad
12-
using Compat
1312
import DifferentiationInterface as DI
1413
using DifferentiationInterface:
1514
Constant, DifferentiateWith, NoPullbackPrep, NoPushforwardPrep, PullbackPrep, unwrap

DifferentiationInterface/ext/DifferentiationInterfaceChainRulesCoreExt/differentiate_with.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function ChainRulesCore.rrule(dw::DifferentiateWith, x)
2-
@compat (; f, backend) = dw
2+
(; f, backend) = dw
33
y = f(x)
44
prep_same = DI.prepare_pullback_same_point(f, backend, x, (y,))
55
function pullbackfunc(dy)

DifferentiationInterface/ext/DifferentiationInterfaceChainRulesCoreExt/reverse_onearg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function DI.value_and_pullback(
4848
ty::NTuple,
4949
contexts::Vararg{Constant,C},
5050
) where {C}
51-
@compat (; y, pb) = prep
51+
(; y, pb) = prep
5252
tx = map(ty) do dy
5353
pb(dy)[2]
5454
end
@@ -63,7 +63,7 @@ function DI.pullback(
6363
ty::NTuple,
6464
contexts::Vararg{Constant,C},
6565
) where {C}
66-
@compat (; pb) = prep
66+
(; pb) = prep
6767
tx = map(ty) do dy
6868
pb(dy)[2]
6969
end

DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/DifferentiationInterfaceForwardDiffExt.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module DifferentiationInterfaceForwardDiffExt
22

33
using ADTypes: AbstractADType, AutoForwardDiff
44
using Base: Fix1, Fix2
5-
using Compat
65
import DifferentiationInterface as DI
76
using DifferentiationInterface:
87
Context,

DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/differentiate_with.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
function (dw::DifferentiateWith)(x::Dual{T,V,N}) where {T,V,N}
2-
@compat (; f, backend) = dw
2+
(; f, backend) = dw
33
xval = myvalue(T, x)
44
tx = mypartials(T, Val(N), x)
55
y, ty = DI.value_and_pushforward(f, backend, xval, tx)
66
return make_dual(T, y, ty)
77
end
88

99
function (dw::DifferentiateWith)(x::AbstractArray{Dual{T,V,N}}) where {T,V,N}
10-
@compat (; f, backend) = dw
10+
(; f, backend) = dw
1111
xval = myvalue(T, x)
1212
tx = mypartials(T, Val(N), x)
1313
y, ty = DI.value_and_pushforward(f, backend, xval, tx)

DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/onearg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function compute_ydual_onearg(
3131
tx::NTuple,
3232
contexts::Vararg{Context,C},
3333
) where {F,T,C}
34-
@compat (; xdual_tmp) = prep
34+
(; xdual_tmp) = prep
3535
make_dual!(T, xdual_tmp, x, tx)
3636
ydual = f(xdual_tmp, map(unwrap, contexts)...)
3737
return ydual

DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/secondorder.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function DI.hvp(
5656
tx::NTuple,
5757
contexts::Vararg{Context,C},
5858
) where {F,C}
59-
@compat (; tagged_outer_backend, inner_gradient, outer_pushforward_prep) = prep
59+
(; tagged_outer_backend, inner_gradient, outer_pushforward_prep) = prep
6060
return DI.pushforward(
6161
inner_gradient, outer_pushforward_prep, tagged_outer_backend, x, tx, contexts...
6262
)
@@ -71,7 +71,7 @@ function DI.hvp!(
7171
tx::NTuple,
7272
contexts::Vararg{Context,C},
7373
) where {F,C}
74-
@compat (; tagged_outer_backend, inner_gradient, outer_pushforward_prep) = prep
74+
(; tagged_outer_backend, inner_gradient, outer_pushforward_prep) = prep
7575
DI.pushforward!(
7676
inner_gradient, tg, outer_pushforward_prep, tagged_outer_backend, x, tx, contexts...
7777
)

0 commit comments

Comments
 (0)