Skip to content

Commit 157d230

Browse files
authored
chore: testing Enzyme 0.13 (#119)
* chore: testing Enzyme 0.13 * ci: preserve names
1 parent 8f8e630 commit 157d230

File tree

5 files changed

+5
-33
lines changed

5 files changed

+5
-33
lines changed

.buildkite/pipeline.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ steps:
33
matrix:
44
setup:
55
version:
6-
- "1.9"
76
- "1.10"
87
plugins:
98
- JuliaCI/julia#v1:

.github/workflows/CI.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
version:
24-
- '1.9'
2524
- '1.10'
26-
- ~1.11.0-0
25+
- '~1.11.0-0'
2726
- 'nightly'
2827
os:
2928
- ubuntu-20.04
@@ -34,11 +33,6 @@ jobs:
3433
- false
3534
libReactant: [packaged]
3635
include:
37-
- os: ubuntu-20.04
38-
arch: x64
39-
libReactant: packaged
40-
version: '1.9'
41-
assertions: true
4236
- os: ubuntu-20.04
4337
arch: x64
4438
libReactant: packaged

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Adapt = "4"
2929
ArrayInterface = "7.10"
3030
CEnum = "0.4, 0.5"
3131
Downloads = "1.6"
32-
Enzyme = "0.11, 0.12"
32+
Enzyme = "0.13"
3333
NNlib = "0.9"
3434
Preferences = "1.4"
3535
Reactant_jll = "0.0.19"
3636
Scratch = "1.2"
37-
Statistics = "1.9"
38-
julia = "1.9"
37+
Statistics = "1.10"
38+
julia = "1.10"
3939

4040
[extras]
4141
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/utils.jl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,6 @@ function make_mlir_fn(f, args, kwargs, name="main", concretein=true; toscalar=fa
9292
Base.code_ircode(f, map(typeof, traced_args); interp),
9393
))
9494

95-
# NOTE on Julia 1.9, it appends a ghost argument at the end
96-
# solution: manually specify argument types
97-
@static if VERSION < v"1.10"
98-
empty!(ir.argtypes)
99-
if f === Reactant.apply
100-
append!(
101-
ir.argtypes,
102-
Any[
103-
Core.Const(f),
104-
typeof(traced_args[1]),
105-
Tuple{typeof.(traced_args[2:end])...},
106-
],
107-
)
108-
else
109-
append!(ir.argtypes, Any[Core.Const(f), typeof.(traced_args)...])
110-
end
111-
end
112-
11395
oc = Core.OpaqueClosure(ir)
11496

11597
if f === Reactant.apply

test/runtests.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,4 @@ include("closure.jl")
4848
include("compile.jl")
4949
include("buffer_donation.jl")
5050
include("nn.jl")
51-
52-
if VERSION v"1.10-" # Lux isn't supported on 1.9
53-
include("nn_lux.jl")
54-
end
51+
include("nn_lux.jl")

0 commit comments

Comments
 (0)