From c5fe914be56d1b2615741382d7ae8a9372361fb3 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sat, 28 Oct 2023 12:21:28 +0100 Subject: [PATCH] Make the algorithm type be inactive --- ext/LinearSolveEnzymeExt.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/LinearSolveEnzymeExt.jl b/ext/LinearSolveEnzymeExt.jl index aeb2bed9..fb70613b 100644 --- a/ext/LinearSolveEnzymeExt.jl +++ b/ext/LinearSolveEnzymeExt.jl @@ -8,8 +8,7 @@ using Enzyme using EnzymeCore -@inline EnzymeCore.EnzymeRules.inactive_type(v::Type{LinearSolve.KrylovJL}) = true -@inline EnzymeCore.EnzymeRules.inactive_type(v::Type{LinearSolve.Krylov.GmresSolver}) = true +@inline EnzymeCore.EnzymeRules.inactive_type(::Type{<:LinearSolve.SciMLLinearSolveAlgorithm}) = true function EnzymeCore.EnzymeRules.forward( func::Const{typeof(LinearSolve.init)}, ::Type{RT}, prob::EnzymeCore.Annotation{LP},