Skip to content

Commit 3470e14

Browse files
authored
Adapt CI to new LTS (#553)
* Test Enzyme on 1.11 * Adapt CI to new LTS * Rename LTS * Replace Enzyme with Zygote in the docs * Rm Enzyme * Fix DW * Otto
1 parent efb5acf commit 3470e14

8 files changed

Lines changed: 25 additions & 27 deletions

File tree

.github/workflows/Documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- uses: actions/checkout@v4
3939
- uses: julia-actions/setup-julia@v2
4040
with:
41-
version: '1.10' # TODO: 1
41+
version: '1' # TODO: 1
4242
- uses: julia-actions/cache@v1
4343
- name: Install dependencies
4444
run: julia --project=${{ matrix.pkg.dir}}/docs/ -e '

.github/workflows/Test.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
actions: write
2626
contents: read
2727
strategy:
28-
fail-fast: false
28+
fail-fast: true
2929
matrix:
3030
version:
31-
- "1.10" # TODO: 1 (as of 2024.10.08, 1 means 1.11 and we're not ready yet)
32-
- "1.11"
31+
- "1.10"
32+
- "1"
3333
group:
3434
- Misc/Internals
3535
- Misc/DifferentiateWith
@@ -49,16 +49,16 @@ jobs:
4949
- Back/Zygote
5050
- Down/Flux
5151
- Down/Lux
52-
skip_pre:
52+
skip_lts:
5353
- ${{ github.event.pull_request.draft }}
5454
exclude:
55-
- skip_pre: true
56-
version: "1.11"
57-
- version: "1.11"
55+
# - skip_lts: true
56+
# version: "1.10"
57+
- version: "1"
5858
group: Back/ChainRulesBackends
59-
- version: "1.11"
59+
- version: "1"
6060
group: Back/Enzyme
61-
- version: "1.11"
61+
- version: "1"
6262
group: Back/Mooncake
6363
env:
6464
JULIA_DI_TEST_GROUP: ${{ matrix.group }}
@@ -98,18 +98,18 @@ jobs:
9898
fail-fast: true
9999
matrix:
100100
version:
101-
- "1.10" # TODO: 1
102-
- "1.11"
101+
- "1.10"
102+
- "1"
103103
group:
104104
- Formalities
105105
- Zero
106106
- Standard
107107
- Weird
108-
skip_pre:
108+
skip_lts:
109109
- ${{ github.event.pull_request.draft }}
110-
exclude:
111-
- skip_pre: true
112-
version: "1.11"
110+
# exclude:
111+
# - skip_lts: true
112+
# version: "1.10"
113113
env:
114114
JULIA_DIT_TEST_GROUP: ${{ matrix.group }}
115115
steps:

DifferentiationInterface/docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
55
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
66
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
77
DocumenterMermaid = "a078cd44-4d9c-4618-b545-3ab9d77f9177"
8-
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
8+
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
99
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1010
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
1111
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"

DifferentiationInterface/docs/make.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ using DocumenterMermaid
66
using DocumenterInterLinks
77

88
using ADTypes: ADTypes
9-
using Enzyme: Enzyme
109
using ForwardDiff: ForwardDiff
1110
using Zygote: Zygote
1211

DifferentiationInterface/docs/src/tutorials/basic.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ Beware that the `prep` object is nearly always mutated by differentiation operat
104104
## Switching backends
105105

106106
The whole point of DifferentiationInterface.jl is that you can easily experiment with different AD solutions.
107-
Typically, for gradients, reverse mode AD might be a better fit, so let's try the state-of-the-art [Enzyme.jl](https://github.com/EnzymeAD/Enzyme.jl)!
107+
Typically, for gradients, reverse mode AD might be a better fit, so let's try [Zygote.jl](https://github.com/FluxML/Zygote.jl)!
108108

109109
```@example tuto_basic
110-
import Enzyme
110+
import Zygote
111111
112-
backend2 = AutoEnzyme()
112+
backend2 = AutoZygote()
113113
```
114114

115115
Once the backend is created, things run smoothly with exactly the same syntax as before:

DifferentiationInterface/src/misc/differentiate_with.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ Moreover, any larger algorithm `alg` that calls `f2` instead of `f` will also be
3333
```jldoctest
3434
julia> using DifferentiationInterface
3535
36-
julia> import Enzyme, ForwardDiff, Zygote
36+
julia> import FiniteDiff, ForwardDiff, Zygote
3737
3838
julia> function f(x::Vector{Float64})
3939
a = Vector{Float64}(undef, 1) # type constraint breaks ForwardDiff
4040
a[1] = sum(abs2, x) # mutation breaks Zygote
4141
return a[1]
4242
end;
4343
44-
julia> f2 = DifferentiateWith(f, AutoEnzyme());
44+
julia> f2 = DifferentiateWith(f, AutoFiniteDiff());
4545
4646
julia> f([3.0, 5.0]) == f2([3.0, 5.0])
4747
true

DifferentiationInterfaceTest/docs/Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ DifferentiationInterface = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
66
DifferentiationInterfaceTest = "a82114a7-5aa3-49a8-9643-716bb13727a3"
77
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
88
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
9-
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
109
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1110
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
1211
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
1312
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
14-
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
13+
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
1514

1615
[compat]
1716
Documenter = "1"

DifferentiationInterfaceTest/docs/src/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ We present a typical workflow with DifferentiationInterfaceTest.jl, building on
44

55
```@repl tuto
66
using DifferentiationInterface, DifferentiationInterfaceTest
7-
import ForwardDiff, Enzyme
7+
import ForwardDiff, Zygote
88
```
99

1010
## Introduction
1111

1212
The AD backends we want to compare are [ForwardDiff.jl](https://github.com/JuliaDiff/ForwardDiff.jl) and [Enzyme.jl](https://github.com/EnzymeAD/Enzyme.jl).
1313

1414
```@example tuto
15-
backends = [AutoForwardDiff(), AutoEnzyme(; mode=Enzyme.Reverse)]
15+
backends = [AutoForwardDiff(), AutoZygote()]
1616
```
1717

1818
To do that, we are going to take gradients of a simple function:

0 commit comments

Comments
 (0)