Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Dec 31, 2024
1 parent d2b4f42 commit 2696ece
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3636,7 +3636,13 @@ const objective3 = params -> mixture_loglikelihood3(params, data)
end
# objective2 fails from runtime activity requirements
# @test expected ≈ Enzyme.gradient(Reverse, objective2, params0)[1]
@test expected Enzyme.gradient(Reverse, objective3, params0)[1]
@static if VERSION < v"1.11-"
@test expected Enzyme.gradient(Reverse, objective3, params0)[1]
else
# TODO broken should not throw
@test_throws Enzyme.Compiler.EnzymeRuntimeActivityError Enzyme.gradient(Reverse, objective3, params0)[1]
@test expected Enzyme.gradient(set_runtime_activity(Reverse), objective3, params0)[1]
end
end

struct HarmonicAngle
Expand Down

0 comments on commit 2696ece

Please sign in to comment.