From 7e1e004f6b25840c4e78cf09bb1c020d99a4e2fd Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 15 Aug 2025 16:36:16 +0100 Subject: [PATCH 1/2] Update Enzyme version in integration test --- test/integration/enzyme/Project.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/enzyme/Project.toml b/test/integration/enzyme/Project.toml index c26655fae..4ab744414 100644 --- a/test/integration/enzyme/Project.toml +++ b/test/integration/enzyme/Project.toml @@ -7,3 +7,6 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [sources] DynamicPPL = {path = "../../../"} + +[compat] +Enzyme = "0.13.68" From 7800f1364e7405b9a25cb29624de5c37edd4098a Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Fri, 15 Aug 2025 19:10:42 +0100 Subject: [PATCH 2/2] inline `evaluate!!` --- src/model.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.jl b/src/model.jl index 9f9c6ec3b..8c6db4bac 100644 --- a/src/model.jl +++ b/src/model.jl @@ -865,7 +865,7 @@ If multiple threads are available, the varinfo provided will be wrapped in a Returns a tuple of the model's return value, plus the updated `varinfo` (unwrapped if necessary). """ -function AbstractPPL.evaluate!!(model::Model, varinfo::AbstractVarInfo) +@inline function AbstractPPL.evaluate!!(model::Model, varinfo::AbstractVarInfo) return if use_threadsafe_eval(model.context, varinfo) evaluate_threadsafe!!(model, varinfo) else