Skip to content
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

gradient of @timed broken #1544

Open
CarloLucibello opened this issue Dec 30, 2024 · 0 comments
Open

gradient of @timed broken #1544

CarloLucibello opened this issue Dec 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@CarloLucibello
Copy link
Member

This works in julia 1.6 but fails on julia 1.11.2:

julia> gradient(x -> first(@timed x), 0)
ERROR: `llvmcall` requires the compiler
Stacktrace:
  [1] macro expansion
    @ ~/.julia/dev/Zygote/src/compiler/interface2.jl:0 [inlined]
  [2] _pullback(::Zygote.Context{…}, ::Core.IntrinsicFunction, ::String, ::Type{…}, ::Type{…}, ::Ptr{…}, ::Int64)
    @ Zygote ~/.julia/dev/Zygote/src/compiler/interface2.jl:91
  [3] atomic_add!
    @ ./atomics.jl:412 [inlined]
  [4] lock_profiling
    @ ./atomics.jl:84 [inlined]
  [5] _pullback(ctx::Zygote.Context{false}, f::typeof(Base.Threads.lock_profiling), args::Bool)
    @ Zygote ~/.julia/dev/Zygote/src/compiler/interface2.jl:0
  [6] #13
    @ ./timing.jl:575 [inlined]
  [7] _pullback(ctx::Zygote.Context{false}, f::var"#13#14", args::Int64)
    @ Zygote ~/.julia/dev/Zygote/src/compiler/interface2.jl:0
  [8] pullback(f::Function, cx::Zygote.Context{false}, args::Int64)
    @ Zygote ~/.julia/dev/Zygote/src/compiler/interface.jl:90
  [9] pullback(f::Function, args::Int64)
    @ Zygote ~/.julia/dev/Zygote/src/compiler/interface.jl:88
 [10] gradient(::Function, ::Int64, ::Vararg{Int64})
    @ Zygote ~/.julia/dev/Zygote/src/compiler/interface.jl:147
 [11] top-level scope
    @ REPL[7]:1
Some type information was truncated. Use `show(err)` to see complete types.

It is one of the currently failing tests.

@mcabbott mcabbott added the bug Something isn't working label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants