From 41514da952fb1c875cd6f8068a6c0ed9a3f9c9e0 Mon Sep 17 00:00:00 2001 From: jumerckx <31353884+jumerckx@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:33:10 +0100 Subject: [PATCH] formatting Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/Interpreter.jl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Interpreter.jl b/src/Interpreter.jl index e29f96e29..8204800a9 100644 --- a/src/Interpreter.jl +++ b/src/Interpreter.jl @@ -45,7 +45,9 @@ function set_reactant_abi( arginfo2 = ArgInfo(fargs isa Nothing ? nothing : fargs[2:end], argtypes[2:end]) return abstract_call(interp, arginfo2::ArgInfo, si, sv, max_methods) elseif interp.defer_within_autodiff && f === overload_autodiff - interp′ = Enzyme.Compiler.Interpreter.EnzymeInterpreter(interp; defer_within_autodiff=false) + interp′ = Enzyme.Compiler.Interpreter.EnzymeInterpreter( + interp; defer_within_autodiff=false + ) return Base.@invoke abstract_call_known( interp′::Enzyme.Compiler.Interpreter.EnzymeInterpreter, f, @@ -69,7 +71,9 @@ end @static if Enzyme.GPUCompiler.HAS_INTEGRATED_CACHE struct ReactantCacheToken end - function ReactantInterpreter(; world::UInt=Base.get_world_counter(), within_autodiff=false) + function ReactantInterpreter(; + world::UInt=Base.get_world_counter(), within_autodiff=false + ) return Enzyme.Compiler.Interpreter.EnzymeInterpreter( ReactantCacheToken(), REACTANT_METHOD_TABLE, @@ -86,7 +90,9 @@ else const REACTANT_CACHE = Enzyme.GPUCompiler.CodeCache() function ReactantInterpreter(; - world::UInt=Base.get_world_counter(), code_cache=REACTANT_CACHE, within_autodiff=false + world::UInt=Base.get_world_counter(), + code_cache=REACTANT_CACHE, + within_autodiff=false, ) return Enzyme.Compiler.Interpreter.EnzymeInterpreter( REACTANT_CACHE,