Skip to content

Commit d6b05e4

Browse files
authored
test: bypass failing Enzyme test until upstream fix (#955)
* test: bypass failing Enzyme test until upstream fix * Fix * Fix runtime activity
1 parent cd515b3 commit d6b05e4

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

  • DifferentiationInterface/test/Back/Enzyme

DifferentiationInterface/test/Back/Enzyme/test.jl

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,37 @@ end;
6363
end
6464

6565
@testset "Second order" begin
66+
test_differentiation(
67+
AutoEnzyme(),
68+
default_scenarios(; include_constantified = true, include_cachified = true);
69+
excluded = vcat(FIRST_ORDER, :hvp, :hessian),
70+
logging = LOGGING,
71+
)
72+
73+
test_differentiation(
74+
AutoEnzyme(),
75+
default_scenarios(; include_constantified = true);
76+
excluded = vcat(FIRST_ORDER, :second_derivative),
77+
logging = LOGGING,
78+
)
79+
80+
test_differentiation(
81+
# TODO: simplify when https://github.com/EnzymeAD/Enzyme.jl/issues/2854 and https://github.com/EnzymeAD/Enzyme.jl/issues/2925 are fixed
82+
if VERSION >= v"1.11"
83+
SecondOrder(
84+
AutoEnzyme(; mode = Enzyme.set_runtime_activity(Enzyme.Forward)),
85+
AutoEnzyme(; mode = Enzyme.set_runtime_activity(Enzyme.Reverse))
86+
)
87+
else
88+
AutoEnzyme()
89+
end,
90+
default_scenarios(; include_normal = false, include_constantified = false, include_cachified = true);
91+
excluded = vcat(FIRST_ORDER, :second_derivative),
92+
logging = LOGGING,
93+
)
94+
6695
test_differentiation(
6796
[
68-
AutoEnzyme(),
6997
SecondOrder(
7098
AutoEnzyme(; mode = Enzyme.Reverse), AutoEnzyme(; mode = Enzyme.Forward)
7199
),

0 commit comments

Comments
 (0)