Skip to content

Commit f1ef230

Browse files
authored
Make active_reg_inner proper inside generated fns (#2592)
* Make active_reg_inner proper inside generated fns * tmp * fix * fix * featuring verion bump * reduce specialization * fix * fixup * fix * fix * improve * fix * fix * fix * fix * fix * fix
1 parent 5c4e91e commit f1ef230

File tree

21 files changed

+322
-367
lines changed

21 files changed

+322
-367
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Enzyme"
22
uuid = "7da242da-08ed-463a-9acd-ee780be4f1d9"
33
authors = ["William Moses <[email protected]>", "Valentin Churavy <[email protected]>"]
4-
version = "0.13.77"
4+
version = "0.13.78"
55

66

77
[deps]
@@ -41,7 +41,7 @@ BFloat16s = "0.2, 0.3, 0.4, 0.5"
4141
CEnum = "0.4, 0.5"
4242
ChainRulesCore = "1"
4343
EnzymeCore = "0.8.13"
44-
Enzyme_jll = "0.0.198"
44+
Enzyme_jll = "0.0.199"
4545
GPUArraysCore = "0.1.6, 0.2"
4646
GPUCompiler = "1.6"
4747
LLVM = "6.1, 7, 8, 9"

lib/EnzymeTestUtils/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "EnzymeTestUtils"
22
uuid = "12d8515a-0907-448a-8884-5fe00fdf1c5a"
33
authors = ["Seth Axen <[email protected]>", "William Moses <[email protected]>", "Valentin Churavy <[email protected]>"]
4-
version = "0.2.3"
4+
version = "0.2.4"
55

66
[deps]
77
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
@@ -14,7 +14,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1414

1515
[compat]
1616
ConstructionBase = "1.4.1"
17-
Enzyme = "0.13"
17+
Enzyme = "0.13.78"
1818
EnzymeCore = "0.5, 0.6, 0.7, 0.8"
1919
FiniteDifferences = "0.12.33"
2020
MetaTesting = "0.1"

lib/EnzymeTestUtils/src/to_vec.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
# basic containers: loop over defined elements, recursively converting them to vectors
5252
function to_vec(x::RT, seen_vecs::AliasDict) where {RT<:Array}
5353
has_seen = haskey(seen_vecs, x)
54-
is_const = Enzyme.Compiler.guaranteed_const_nongen(RT, nothing)
54+
is_const = Enzyme.Compiler.guaranteed_const(RT)
5555
if has_seen || is_const
5656
x_vec = Float32[]
5757
else
@@ -95,7 +95,7 @@ else
9595
# basic containers: loop over defined elements, recursively converting them to vectors
9696
function to_vec(x::RT, seen_vecs::AliasDict) where {RT<:GenericMemory}
9797
has_seen = haskey(seen_vecs, x)
98-
is_const = Enzyme.Compiler.guaranteed_const_nongen(RT, nothing)
98+
is_const = Enzyme.Compiler.guaranteed_const(RT)
9999
if has_seen || is_const
100100
x_vec = Float32[]
101101
else
@@ -153,7 +153,7 @@ end
153153
# fallback: for any other struct, loop over fields, recursively converting them to vectors
154154
function to_vec(x::RT, seen_vecs::AliasDict) where {RT}
155155
has_seen = haskey(seen_vecs, x)
156-
is_const = Enzyme.Compiler.guaranteed_const_nongen(RT, nothing)
156+
is_const = Enzyme.Compiler.guaranteed_const(RT)
157157
if has_seen || is_const
158158
x_vec = Float32[]
159159
else

0 commit comments

Comments
 (0)