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

Support Julia 1.6 #45

Closed
femtomc opened this issue Feb 12, 2021 · 5 comments
Closed

Support Julia 1.6 #45

femtomc opened this issue Feb 12, 2021 · 5 comments

Comments

@femtomc
Copy link

femtomc commented Feb 12, 2021

Julia Version 1.6.0-beta1
Commit b84990e1ac (2021-01-08 12:42 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.6.0)
  CPU: Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.0 (ORCJIT, westmere)
using Distributions, Enzyme
f(x) = logpdf(Normal(0.0, 1.0), x)
autodiff(f, Active(1.0))
@wsmoses
Copy link
Member

wsmoses commented Feb 12, 2021

Can you post the error message? I'm guessing it is because you're using Julia 1.6 which uses LLVM 11 and Enzyme_jll is currently only built for LLVM 9 (@vchuravy ).

Testing it locally appears to work for me.

@femtomc
Copy link
Author

femtomc commented Feb 12, 2021

Big stacktrace reminiscent of segfaults and then:

ERROR: MethodError: no method matching cached_compilation(::Dict{UInt64, Any}, ::typeof(Enzyme.Compiler._thunk), ::typeof(Enzyme.Compiler._link), ::GPUCompiler.FunctionSpec{typeof(Cassette.overdub), Tuple{Cassette.Context{nametype(EnzymeCtx), Nothing, Nothing, Enzyme.Compiler.var"##PassType#245", Nothing, Cassette.DisableHooks}, typeof(fn), Float64}}; adjoint=function fn(Active{Float64}), rt=Float64, split=false)
Closest candidates are:
  cached_compilation(::Dict, ::GPUCompiler.CompilerJob{var"#s155", var"#s154", GPUCompiler.FunctionSpec{f, tt}} where var"#s154" where var"#s155", ::Function, ::Function) where {f, tt} at /Users/mccoybecker/.julia/packages/GPUCompiler/XwWPj/src/cache.jl:70 got unsupported keyword arguments "adjoint", "rt", "split"
Stacktrace:
 [1] thunk(f::typeof(fn), tt::Type{Tuple{Active{Float64}}}, ::Val{false})
   @ Enzyme.Compiler ~/.julia/packages/Enzyme/5KrR6/src/compiler/thunk.jl:73
 [2] thunk(f::typeof(fn), tt::Type{Tuple{Active{Float64}}})
   @ Enzyme.Compiler ~/.julia/packages/Enzyme/5KrR6/src/compiler/thunk.jl:64
 [3] autodiff(f::Function, args::Active{Float64})
   @ Enzyme ~/.julia/packages/Enzyme/5KrR6/src/Enzyme.jl:46
 [4] top-level scope
   @ REPL[3]:1

Edit: what's your versioninfo() ?

Can show in person @ 5.

@vchuravy
Copy link
Member

Yeah 1.6 is very much not supported

@wsmoses
Copy link
Member

wsmoses commented Feb 12, 2021

I'm using:

Julia Version 1.5.2
Commit 539f3ce943 (2020-09-23 23:17 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

@vchuravy vchuravy changed the title Bad stuff with logpdf Support Julia 1.6 Feb 12, 2021
@femtomc
Copy link
Author

femtomc commented Apr 12, 2021

@vchuravy I suspect safe to close.

@femtomc femtomc closed this as completed Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants