-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enzyme v0.13.13 asserts for Duplicated
function
#2056
Comments
can you create a mwe and confirm it on main (we're about to release a new patch) |
a mwe without DI*** |
sure |
Here is a pure Enzyme MWE, which still segfaults on using Enzyme
struct BufferedMap!{F,X,Y}
f::F
x_buffer::Vector{X}
y_buffer::Vector{Y}
end
function (bc::BufferedMap!)(y, x)
(; f, x_buffer, y_buffer) = bc
x_buffer[1] = x
y_buffer[1] = y
map!(f, y_buffer[1], x_buffer[1])
return copy(y_buffer[1])
end
x, y, dx = zeros(1), zeros(1), ones(1)
f! = BufferedMap!(sin, [copy(x)], [copy(y)])
function my_value_and_pushforward(f!, y, x, dx)
f!_and_df! = Duplicated(f!, make_zero(f!)) # is this the right annotation? it used to work
dx_sametype = convert(typeof(x), dx)
dy_sametype = make_zero(y)
x_and_dx = Duplicated(x, dx_sametype)
y_and_dy = Duplicated(y, dy_sametype)
autodiff(Forward, f!_and_df!, Const, y_and_dy, x_and_dx)
return y, dy_sametype
end
my_value_and_pushforward(f!, y, x, dx) Maybe |
gdalle
changed the title
Enzyme v0.13.13 breaks DI testing on Julia 1.10
Enzyme v0.13.13 segfaults for Nov 4, 2024
Duplicated
function
wsmoses
changed the title
Enzyme v0.13.13 segfaults for
Enzyme v0.13.13 asserts for Nov 5, 2024
Duplicated
functionDuplicated
function
Fixed on main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enzyme v0.13.13 fails the DI test suite on Julia 1.10, while v0.13.12 didn't. Do you know what could have caused it?
CI log: https://github.com/JuliaDiff/DifferentiationInterface.jl/actions/runs/11669117341/job/32490363602?pr=606
MWE with DifferentiationInterfaceTest (the first failing test):
Standalone MWE:
Stacktrace of the pure MWE:
The text was updated successfully, but these errors were encountered: