Skip to content

Commit 574b0d8

Browse files
committed
fix: no ConfigWidth
1 parent e0f3939 commit 574b0d8

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

Project.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
3636
BlockDiagonals = "0a1fb500-61f7-11e9-3c65-f5ef3456f9f0"
3737
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
3838
CUDSS = "45b445bb-4962-46a0-9369-b4df9d0f772e"
39-
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
4039
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
4140
FastAlmostBandedMatrices = "9d29842c-ecb8-4973-b1e9-a27b1157504e"
4241
HYPRE = "b5ffcf37-a2bd-41ab-a3da-4bd9bc8ad771"
@@ -52,8 +51,8 @@ LinearSolveBandedMatricesExt = "BandedMatrices"
5251
LinearSolveBlockDiagonalsExt = "BlockDiagonals"
5352
LinearSolveCUDAExt = "CUDA"
5453
LinearSolveCUDSSExt = "CUDSS"
55-
LinearSolveEnzymeExt = ["Enzyme", "EnzymeCore"]
56-
LinearSolveFastAlmostBandedMatricesExt = ["FastAlmostBandedMatrices"]
54+
LinearSolveEnzymeExt = "EnzymeCore"
55+
LinearSolveFastAlmostBandedMatricesExt = "FastAlmostBandedMatrices"
5756
LinearSolveHYPREExt = "HYPRE"
5857
LinearSolveIterativeSolversExt = "IterativeSolvers"
5958
LinearSolveKernelAbstractionsExt = "KernelAbstractions"
@@ -84,7 +83,7 @@ GPUArraysCore = "0.1.6"
8483
HYPRE = "1.4.0"
8584
InteractiveUtils = "1.10"
8685
IterativeSolvers = "0.9.3"
87-
JET = "0.8.28"
86+
JET = "0.8.28, 0.9"
8887
KLU = "0.6"
8988
KernelAbstractions = "0.9.16"
9089
Krylov = "0.9"

ext/LinearSolveEnzymeExt.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ module LinearSolveEnzymeExt
22

33
using LinearSolve
44
using LinearSolve.LinearAlgebra
5-
isdefined(Base, :get_extension) ? (import Enzyme) : (import ..Enzyme)
6-
7-
using Enzyme
8-
95
using EnzymeCore
106

11-
function EnzymeCore.EnzymeRules.forward(config::ConfigWidth{1},
7+
function EnzymeCore.EnzymeRules.forward(config::EnzymeCore.EnzymeRules.FwdConfigWidth{1},
128
func::Const{typeof(LinearSolve.init)}, ::Type{RT}, prob::EnzymeCore.Annotation{LP},
139
alg::Const; kwargs...) where {RT, LP <: LinearSolve.LinearProblem}
1410
@assert !(prob isa Const)
@@ -41,7 +37,8 @@ function EnzymeCore.EnzymeRules.forward(config::ConfigWidth{1},
4137
end
4238
end
4339

44-
function EnzymeCore.EnzymeRules.forward(config::ConfigWidth{1}, func::Const{typeof(LinearSolve.solve!)},
40+
function EnzymeCore.EnzymeRules.forward(
41+
config::EnzymeCore.EnzymeRules.FwdConfigWidth{1}, func::Const{typeof(LinearSolve.solve!)},
4542
::Type{RT}, linsolve::EnzymeCore.Annotation{LP};
4643
kwargs...) where {RT, LP <: LinearSolve.LinearCache}
4744
@assert !(linsolve isa Const)

0 commit comments

Comments
 (0)