Skip to content

Commit ce08d69

Browse files
committed
mark function as const for good measure
1 parent d634e38 commit ce08d69

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

test/ad.jl

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,20 @@ if INCLUDE_MOONCAKE
205205
push!(ADTYPES, AutoMooncake(; config=nothing))
206206
end
207207
if INCLUDE_ENZYME
208-
push!(ADTYPES, AutoEnzyme(; mode=Enzyme.set_runtime_activity(Enzyme.Forward)))
209-
push!(ADTYPES, AutoEnzyme(; mode=Enzyme.set_runtime_activity(Enzyme.Reverse)))
208+
push!(
209+
ADTYPES,
210+
AutoEnzyme(;
211+
mode=Enzyme.set_runtime_activity(Enzyme.Forward),
212+
function_annotation=Enzyme.Const,
213+
),
214+
)
215+
push!(
216+
ADTYPES,
217+
AutoEnzyme(;
218+
mode=Enzyme.set_runtime_activity(Enzyme.Reverse),
219+
function_annotation=Enzyme.Const,
220+
),
221+
)
210222
end
211223

212224
# Check that ADTypeCheckContext itself works as expected.

0 commit comments

Comments
 (0)