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

Flux errors on Julia 1.7 Beta 2 #1652

Closed
logankilpatrick opened this issue Jul 2, 2021 · 2 comments
Closed

Flux errors on Julia 1.7 Beta 2 #1652

logankilpatrick opened this issue Jul 2, 2021 · 2 comments

Comments

@logankilpatrick
Copy link
Member

I am trying to test some stuff in Flux on Julia 1.7 beta 2 and here is what I get:

julia> using Flux
[ Info: Precompiling Flux [587475ba-b771-5e3f-ad9e-33799f191a9c]
WARNING: Method definition (::ChainRulesCore.InplaceableThunk{T<:(ChainRulesCore.Thunk{F} where F), F})() in module ChainRulesCore at /Users/logankilpatrick/.julia/packages/ChainRulesCore/e5hAX/src/deprecated.jl:52 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::ChainRulesCore.Thunk{F})() in module ChainRulesCore at /Users/logankilpatrick/.julia/packages/ChainRulesCore/e5hAX/src/deprecated.jl:52 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::ForwardDiff.InnerGradientForHess{R, C, F})(Any, Any) in module ForwardDiff at /Users/logankilpatrick/.julia/packages/ForwardDiff/QOqCN/src/hessian.jl:48 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::IRTools.Inner.Lambda{var"#s42"<:(Tuple{var"#s41", Vararg{Any}} where var"#s41"<:typeof(Zygote.Forward._pushforward)), I, T})(Any...) in module Forward at /Users/logankilpatrick/.julia/packages/IRTools/46viC/src/reflection/dynamo.jl:116 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::Zygote.ZBack{F})(Nothing) in module Zygote at /Users/logankilpatrick/.julia/packages/Zygote/0da6K/src/compiler/chainrules.jl:94 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::Zygote.ZBack{F})(Any) in module Zygote at /Users/logankilpatrick/.julia/packages/Zygote/0da6K/src/compiler/chainrules.jl:91 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::Zygote.StaticGetter{i})(Any) where {i} in module Zygote at /Users/logankilpatrick/.julia/packages/Zygote/0da6K/src/lib/array.jl:196 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::Zygote.Pullback{T, T})(Any) where {T} in module Zygote at /Users/logankilpatrick/.julia/packages/Zygote/0da6K/src/compiler/interface2.jl:38 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::Zygote.Jnew{T, G, splat})(Any) where {T} in module Zygote at /Users/logankilpatrick/.julia/packages/Zygote/0da6K/src/lib/lib.jl:323 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::Zygote.Jnew{T, G, true})(Union{Nothing, Base.RefValue{T} where T, NamedTuple{names, T} where T<:Tuple where names}) where {T, G} in module Zygote at /Users/logankilpatrick/.julia/packages/Zygote/0da6K/src/lib/lib.jl:313 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::Zygote.Jnew{T, G, false})(Union{Nothing, Base.RefValue{T} where T, NamedTuple{names, T} where T<:Tuple where names}) where {T, G} in module Zygote at /Users/logankilpatrick/.julia/packages/Zygote/0da6K/src/lib/lib.jl:301 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Base.VersionNumber, Base.VersionNumber) in module Deps at /Users/logankilpatrick/.julia/packages/CUDA/Ozu5O/deps/compatibility.jl:19 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::CUDA.DeviceKernel{F, TT})(Any...) in module CUDA at /Users/logankilpatrick/.julia/packages/CUDA/Ozu5O/src/compiler/execution.jl:484 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::CUDA.HostKernel{F, TT})(Any...) in module CUDA at /Users/logankilpatrick/.julia/packages/CUDA/Ozu5O/src/compiler/execution.jl:453 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::ChainRulesCore.InplaceableThunk{T<:(ChainRulesCore.Thunk{F} where F), F})() in module ChainRulesCore at /Users/logankilpatrick/.julia/packages/ChainRulesCore/e5hAX/src/deprecated.jl:52 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::ChainRulesCore.Thunk{F})() in module ChainRulesCore at /Users/logankilpatrick/.julia/packages/ChainRulesCore/e5hAX/src/deprecated.jl:52 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition Any(Base.VersionNumber, Base.VersionNumber) in module Deps at /Users/logankilpatrick/.julia/packages/CUDA/Ozu5O/deps/compatibility.jl:19 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::CUDA.DeviceKernel{F, TT})(Any...) in module CUDA at /Users/logankilpatrick/.julia/packages/CUDA/Ozu5O/src/compiler/execution.jl:484 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::CUDA.HostKernel{F, TT})(Any...) in module CUDA at /Users/logankilpatrick/.julia/packages/CUDA/Ozu5O/src/compiler/execution.jl:453 overwritten on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: both CUDA and Base export "@atomic"; uses of it in module NNlibCUDA must be qualified
ERROR: LoadError: UndefVarError: @atomic not defined
Stacktrace:
  [1] top-level scope
    @ :0
  [2] include(mod::Module, _path::String)
    @ Base ./Base.jl:417
  [3] include(x::String)
    @ NNlibCUDA ~/.julia/packages/NNlibCUDA/AWLF7/src/NNlibCUDA.jl:1
  [4] top-level scope
    @ ~/.julia/packages/NNlibCUDA/AWLF7/src/NNlibCUDA.jl:14
  [5] include
    @ ./Base.jl:417 [inlined]
  [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1318
  [7] top-level scope
    @ none:1
  [8] eval
    @ ./boot.jl:373 [inlined]
  [9] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [10] top-level scope
    @ none:1
in expression starting at /Users/logankilpatrick/.julia/packages/NNlibCUDA/AWLF7/src/utils.jl:22
in expression starting at /Users/logankilpatrick/.julia/packages/NNlibCUDA/AWLF7/src/utils.jl:16
in expression starting at /Users/logankilpatrick/.julia/packages/NNlibCUDA/AWLF7/src/NNlibCUDA.jl:1
ERROR: LoadError: Failed to precompile NNlibCUDA [a00861dc-f156-4864-bf3c-e6376f28a68d] to /Users/logankilpatrick/.julia/compiled/v1.7/NNlibCUDA/jl_Kd2CIc.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1466
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1410
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1120
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [7] include(mod::Module, _path::String)
    @ Base ./Base.jl:417
  [8] include(x::String)
    @ Flux ~/.julia/packages/Flux/0c9kI/src/Flux.jl:1
  [9] top-level scope
    @ ~/.julia/packages/Flux/0c9kI/src/Flux.jl:57
 [10] include
    @ ./Base.jl:417 [inlined]
 [11] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1318
 [12] top-level scope
    @ none:1
 [13] eval
    @ ./boot.jl:373 [inlined]
 [14] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [15] top-level scope
    @ none:1
in expression starting at /Users/logankilpatrick/.julia/packages/Flux/0c9kI/src/cuda/cuda.jl:1
in expression starting at /Users/logankilpatrick/.julia/packages/Flux/0c9kI/src/Flux.jl:1
ERROR: Failed to precompile Flux [587475ba-b771-5e3f-ad9e-33799f191a9c] to /Users/logankilpatrick/.julia/compiled/v1.7/Flux/jl_vHk80Z.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1466
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1410
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1120
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1013
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:997
@ToucheSir
Copy link
Member

Should be fixed by #1648.

@logankilpatrick
Copy link
Member Author

Working for me now on 1.7

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

2 participants