Skip to content

Commit 07ebcd3

Browse files
authored
Bump jll with extract tuple for reverse fix (#1678)
1 parent 4b464ac commit 07ebcd3

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ EnzymeStaticArraysExt = "StaticArrays"
3232
CEnum = "0.4, 0.5"
3333
ChainRulesCore = "1"
3434
EnzymeCore = "0.7.7"
35-
Enzyme_jll = "0.0.137"
35+
Enzyme_jll = "0.0.138"
3636
GPUCompiler = "0.21, 0.22, 0.23, 0.24, 0.25, 0.26"
3737
LLVM = "6.1, 7, 8"
3838
LogExpFunctions = "0.3"

test/runtests.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2239,6 +2239,19 @@ end
22392239
end
22402240
end
22412241

2242+
function solve_cubic_eq(poly::AbstractVector{Complex{T}}) where T
2243+
a1 = 1 / @inbounds poly[1]
2244+
E1 = 2*a1
2245+
E12 = E1*E1
2246+
s1 = log(E12)
2247+
return nothing
2248+
end
2249+
2250+
@testset "Extract Tuple for Reverse" begin
2251+
autodiff_thunk(ReverseSplitNoPrimal, Const{typeof(solve_cubic_eq)}, Const, Duplicated{Vector{Complex{Float64}}})
2252+
end
2253+
2254+
22422255
@testset "GetField" begin
22432256
mutable struct MyType
22442257
x::Float64

0 commit comments

Comments
 (0)