Skip to content

Commit

Permalink
Make the algorithm type be inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Sep 12, 2024
1 parent 39b3717 commit c5fe914
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/LinearSolveEnzymeExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit c5fe914

Please sign in to comment.