Knet.jl icon indicating copy to clipboard operation
Knet.jl copied to clipboard

LoadError: Failed to precompile Knet [1902f260-5fb4-5aff-8c31-6271790ab950] to my julia directory

Open JuanVargas opened this issue 3 years ago • 3 comments

Hi, I am starting to use Knet in Julia version 1.6.2. After starting Julia, I enter:

Pkg.add("Knet"); using Knet

I get

✗ Knet 2 dependencies successfully precompiled in 16 seconds (243 already precompiled) 1 dependency errored. To see a full report either run import Pkg; Pkg.precompile() or load the package

LoadError: LoadError: LoadError: UndefVarError: cudnnRNNTempSpaceSizes not defined

Is there a fix to this problem??

JuanVargas avatar Aug 11 '21 15:08 JuanVargas

This seems to be a CUDA.jl version issue. You may not have the right CUDA libraries installed. Please try to install and test CUDA.jl first. CUDA.versioninfo() should give you all the library versions you have.

On Wed, Aug 11, 2021 at 6:58 PM Juan E. Vargas @.***> wrote:

Hi, I am starting to use Knet in Julia version 1.6.2. After starting Julia, I enter:

Pkg.add("Knet"); using Knet

I get

✗ Knet 2 dependencies successfully precompiled in 16 seconds (243 already precompiled) 1 dependency errored. To see a full report either run import Pkg; Pkg.precompile() or load the package

LoadError: LoadError: LoadError: UndefVarError: cudnnRNNTempSpaceSizes not defined

Is there a fix to this problem??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/denizyuret/Knet.jl/issues/665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN43JSKKAZOQA6R2CKAGBDT4KM3FANCNFSM5B63TP7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

denizyuret avatar Aug 12 '21 04:08 denizyuret

I am getting a similar error. I am using macOS 11.5.1 with no Nvidia gpus.

WARNING: could not import CUDNN.cudnnTensorDescriptor into CUDNN
WARNING: could not import CUDNN.cudnnFilterDescriptor into CUDNN
WARNING: could not import CUDNN.cudnnActivationForwardAD into CUDNN
WARNING: could not import CUDNN.cudnnSoftmaxForwardAD into CUDNN
WARNING: could not import CUDNN.cudnnPoolingForwardAD into CUDNN
WARNING: could not import CUDNN.cudnnDropoutForwardAD into CUDNN
WARNING: could not import CUDNN.cudnnRNNForwardAD into CUDNN
ERROR: LoadError: LoadError: LoadError: UndefVarError: cudnnRNNTempSpaceSizes not defined
Stacktrace:
  [1] include(mod::Module, _path::String)
    @ Base ./Base.jl:386
  [2] include(x::String)
    @ Knet.CUDNN ~/.julia/packages/Knet/59nH1/src/cudnn/CUDNN.jl:1
  [3] top-level scope
    @ ~/.julia/packages/Knet/59nH1/src/cudnn/CUDNN.jl:10
  [4] include(mod::Module, _path::String)
    @ Base ./Base.jl:386
  [5] include(x::String)
    @ Knet ~/.julia/packages/Knet/59nH1/src/Knet.jl:1
  [6] top-level scope
    @ ~/.julia/packages/Knet/59nH1/src/Knet.jl:18
  [7] include
    @ ./Base.jl:386 [inlined]
  [8] 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:1213
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /Users/x/.julia/packages/Knet/59nH1/src/cudnn/rnn.jl:4
in expression starting at /Users/x/.julia/packages/Knet/59nH1/src/cudnn/CUDNN.jl:1
in expression starting at /Users/x/.julia/packages/Knet/59nH1/src/Knet.jl:1
ERROR: Failed to precompile Knet [1902f260-5fb4-5aff-8c31-6271790ab950] to /Users/x/.julia/compiled/v1.6/Knet/jl_1gOztB.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
   @ Base ./loading.jl:1360
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1306
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1021
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:914
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:901```

hiiroo avatar Aug 23 '21 16:08 hiiroo

I cannot replicate this error using Julia 1.6.2, CUDA 3.4.2 and Knet 1.4.8.

On Mon, Aug 23, 2021 at 7:17 PM Mert Ceylan @.***> wrote:

I am getting a similar error. I am using macOS 11.5.1 with no Nvidia gpus.

WARNING: could not import CUDNN.cudnnTensorDescriptor into CUDNN WARNING: could not import CUDNN.cudnnFilterDescriptor into CUDNN WARNING: could not import CUDNN.cudnnActivationForwardAD into CUDNN WARNING: could not import CUDNN.cudnnSoftmaxForwardAD into CUDNN WARNING: could not import CUDNN.cudnnPoolingForwardAD into CUDNN WARNING: could not import CUDNN.cudnnDropoutForwardAD into CUDNN WARNING: could not import CUDNN.cudnnRNNForwardAD into CUDNN ERROR: LoadError: LoadError: LoadError: UndefVarError: cudnnRNNTempSpaceSizes not defined Stacktrace: [1] include(mod::Module, _path::String) @ Base ./Base.jl:386 [2] include(x::String) @ Knet.CUDNN ~/.julia/packages/Knet/59nH1/src/cudnn/CUDNN.jl:1 [3] top-level scope @ ~/.julia/packages/Knet/59nH1/src/cudnn/CUDNN.jl:10 [4] include(mod::Module, _path::String) @ Base ./Base.jl:386 [5] include(x::String) @ Knet ~/.julia/packages/Knet/59nH1/src/Knet.jl:1 [6] top-level scope @ ~/.julia/packages/Knet/59nH1/src/Knet.jl:18 [7] include @ ./Base.jl:386 [inlined] [8] 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:1213 [9] top-level scope @ none:1 [10] eval @ ./boot.jl:360 [inlined] [11] eval(x::Expr) @ Base.MainInclude ./client.jl:446 [12] top-level scope @ none:1 in expression starting at /Users/x/.julia/packages/Knet/59nH1/src/cudnn/rnn.jl:4 in expression starting at /Users/x/.julia/packages/Knet/59nH1/src/cudnn/CUDNN.jl:1 in expression starting at /Users/x/.julia/packages/Knet/59nH1/src/Knet.jl:1 ERROR: Failed to precompile Knet [1902f260-5fb4-5aff-8c31-6271790ab950] to /Users/x/.julia/compiled/v1.6/Knet/jl_1gOztB. Stacktrace: [1] error(s::String) @ Base ./error.jl:33 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY) @ Base ./loading.jl:1360 [3] compilecache(pkg::Base.PkgId, path::String) @ Base ./loading.jl:1306 [4] _require(pkg::Base.PkgId) @ Base ./loading.jl:1021 [5] require(uuidkey::Base.PkgId) @ Base ./loading.jl:914 [6] require(into::Module, mod::Symbol) @ Base ./loading.jl:901```

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/denizyuret/Knet.jl/issues/665#issuecomment-903919695, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN43JTURGDRRCNKQNNT553T6JYDFANCNFSM5B63TP7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

denizyuret avatar Sep 01 '21 16:09 denizyuret