Hi
I have updated ubuntu t0 20.04, julia to 1.5.2 and cuda toolkit to 111, and I have trouble with both CUDA and Flux. They both get installed but do not pass test or compile. I removed one tried the other, changed the order of updating them etc but can not get them to work. Any suggestions?
Errors are below.
ps. I did try add CUDAv@2.x.x (with 1, 2 0 for x x ) but that did not install at all.
Thanks
Nima
(@v1.5) pkg> add CUDA
Updating registry at ~/.julia/registries/General
Resolving package versions…
Updating ~/.julia/environments/v1.5/Project.toml
[052768ef] + CUDA v0.1.0
Updating ~/.julia/environments/v1.5/Manifest.toml
[fa961155] ↓ CEnum v0.3.0 ⇒ v0.2.0
[052768ef] + CUDA v0.1.0
[be33ccc6] ↓ CUDAnative v3.2.0 ⇒ v3.0.4
[61eb1bfa] ↑ GPUCompiler v0.2.0 ⇒ v0.3.0
(@v1.5) pkg> test CUDA
Testing CUDA
Status /tmp/jl_253Iww/Project.toml
[621f4979] AbstractFFTs v0.5.0
[79e6a3ab] Adapt v1.1.0
[b99e7846] BinaryProvider v0.5.10
[fa961155] CEnum v0.2.0
[052768ef] CUDA v0.1.0
[864edb3b] DataStructures v0.17.20
[e2ba6199] ExprTools v0.1.3
[7a1cc6ca] FFTW v1.2.4
[1a297f60] FillArrays v0.8.14
[f6369f11] ForwardDiff v0.10.12
[0c68f7d7] GPUArrays v3.4.1
[61eb1bfa] GPUCompiler v0.3.0
[929cbde3] LLVM v1.7.0
[1914dd2f] MacroTools v0.5.6
[872c559c] NNlib v0.6.6
[189a3867] Reexport v0.2.0
[ae029012] Requires v1.1.0
[a759f4b9] TimerOutputs v0.5.7
[ade2ca70] Dates
[8ba89e20] Distributed
[8f399da3] Libdl
[37e2e46d] LinearAlgebra
[56ddb016] Logging
[44cfe95a] Pkg
[de0858da] Printf
[3fa0cd96] REPL
[9a3f8284] Random
[2f01184e] SparseArrays
[10745b16] Statistics
[8dfed614] Test
Status /tmp/jl_253Iww/Manifest.toml
[621f4979] AbstractFFTs v0.5.0
[79e6a3ab] Adapt v1.1.0
[56f22d72] Artifacts v1.3.0
[b99e7846] BinaryProvider v0.5.10
[fa961155] CEnum v0.2.0
[052768ef] CUDA v0.1.0
[bbf7d656] CommonSubexpressions v0.3.0
[e66e0078] CompilerSupportLibraries_jll v0.3.4+0
[864edb3b] DataStructures v0.17.20
[163ba53b] DiffResults v1.0.2
[b552c78f] DiffRules v1.0.1
[e2ba6199] ExprTools v0.1.3
[7a1cc6ca] FFTW v1.2.4
[f5851436] FFTW_jll v3.3.9+6
[1a297f60] FillArrays v0.8.14
[f6369f11] ForwardDiff v0.10.12
[0c68f7d7] GPUArrays v3.4.1
[61eb1bfa] GPUCompiler v0.3.0
[1d5cc7b8] IntelOpenMP_jll v2018.0.3+0
[692b3bcd] JLLWrappers v1.1.3
[929cbde3] LLVM v1.7.0
[856f044c] MKL_jll v2020.2.254+0
[1914dd2f] MacroTools v0.5.6
[872c559c] NNlib v0.6.6
[77ba4419] NaNMath v0.3.4
[efe28fd5] OpenSpecFun_jll v0.5.3+4
[bac558e1] OrderedCollections v1.3.2
[189a3867] Reexport v0.2.0
[ae029012] Requires v1.1.0
[276daf66] SpecialFunctions v0.10.3
[90137ffa] StaticArrays v0.12.5
[a759f4b9] TimerOutputs v0.5.7
[2a0f44e3] Base64
[ade2ca70] Dates
[8ba89e20] Distributed
[b77e0a4c] InteractiveUtils
[76f85450] LibGit2
[8f399da3] Libdl
[37e2e46d] LinearAlgebra
[56ddb016] Logging
[d6f4376e] Markdown
[44cfe95a] Pkg
[de0858da] Printf
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA
[9e88b42a] Serialization
[6462fe0b] Sockets
[2f01184e] SparseArrays
[10745b16] Statistics
[8dfed614] Test
[cf7118a7] UUIDs
[4ec0a83e] Unicode
ERROR: LoadError: LoadError: LoadError: UndefVarError: AddrSpacePtr not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at ./Base.jl:26
[2] top-level scope at /home/nima/.julia/packages/CUDA/5t6R9/src/device/cuda/wmma.jl:52
[3] include(::Function, ::Module, ::String) at ./Base.jl:380
[4] include at ./Base.jl:368 [inlined]
[5] include(::String) at /home/nima/.julia/packages/CUDA/5t6R9/src/CUDA.jl:1
[6] top-level scope at /home/nima/.julia/packages/CUDA/5t6R9/src/device/cuda.jl:15
[7] include(::Function, ::Module, ::String) at ./Base.jl:380
[8] include at ./Base.jl:368 [inlined]
[9] include(::String) at /home/nima/.julia/packages/CUDA/5t6R9/src/CUDA.jl:1
[10] top-level scope at /home/nima/.julia/packages/CUDA/5t6R9/src/CUDA.jl:39
[11] include(::Function, ::Module, ::String) at ./Base.jl:380
[12] include(::Module, ::String) at ./Base.jl:368
[13] top-level scope at none:2
[14] eval at ./boot.jl:331 [inlined]
[15] eval(::Expr) at ./client.jl:467
[16] top-level scope at ./none:3
in expression starting at /home/nima/.julia/packages/CUDA/5t6R9/src/device/cuda/wmma.jl:52
in expression starting at /home/nima/.julia/packages/CUDA/5t6R9/src/device/cuda.jl:14
in expression starting at /home/nima/.julia/packages/CUDA/5t6R9/src/CUDA.jl:39
ERROR: LoadError: LoadError: Failed to precompile CUDA [052768ef-5323-5732-b1bb-66c8b64840ba] to /home/nima/.julia/compiled/v1.5/CUDA/oWw5k_t3Fxp.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923
[6] include(::String) at ./client.jl:457
[7] top-level scope at /home/nima/.julia/packages/CUDA/5t6R9/test/runtests.jl:42
[8] include(::String) at ./client.jl:457
[9] top-level scope at none:6
in expression starting at /home/nima/.julia/packages/CUDA/5t6R9/test/setup.jl:1
in expression starting at /home/nima/.julia/packages/CUDA/5t6R9/test/runtests.jl:42
ERROR: Package CUDA errored during testing
(@v1.5) pkg> add Flux,Zygote
Resolving package versions…
Updating ~/.julia/environments/v1.5/Project.toml
[587475ba] + Flux v0.10.4
[e88e6eb3] + Zygote v0.4.22
No Changes to ~/.julia/environments/v1.5/Manifest.toml
(@v1.5) pkg> build Flux
Building NNlib → ~/.julia/packages/NNlib/FAI3o/deps/build.log
(@v1.5) pkg> test Flux
Testing Flux
Status /tmp/jl_RR0wDx/Project.toml
[1520ce14] AbstractTrees v0.3.3
[79e6a3ab] Adapt v1.1.0
[944b1d66] CodecZlib v0.7.0
[5ae59095] Colors v0.12.4
[3a865a2d] CuArrays v2.2.2
[e30172f5] Documenter v0.25.3
[587475ba] Flux v0.10.4
[c8e1da08] IterTools v1.3.0
[e5e0dc1b] Juno v0.8.4
[1914dd2f] MacroTools v0.5.6
[872c559c] NNlib v0.6.6
[189a3867] Reexport v0.2.0
[2913bbd2] StatsBase v0.33.2
[a5390f91] ZipFile v0.9.3
[e88e6eb3] Zygote v0.4.22
[8bb1440f] DelimitedFiles
[37e2e46d] LinearAlgebra
[44cfe95a] Pkg
[de0858da] Printf
[9a3f8284] Random
[ea8e919c] SHA
[10745b16] Statistics
[8dfed614] Test
Status /tmp/jl_RR0wDx/Manifest.toml
[621f4979] AbstractFFTs v0.5.0
[1520ce14] AbstractTrees v0.3.3
[79e6a3ab] Adapt v1.1.0
[4c555306] ArrayLayouts v0.3.8
[56f22d72] Artifacts v1.3.0
[b99e7846] BinaryProvider v0.5.10
[fa961155] CEnum v0.2.0
[3895d2a7] CUDAapi v4.0.0
[c5f51814] CUDAdrv v6.3.0
[be33ccc6] CUDAnative v3.0.4
[082447d4] ChainRules v0.6.5
[d360d2e6] ChainRulesCore v0.8.1
[da1fd8a2] CodeTracking v0.5.12
[944b1d66] CodecZlib v0.7.0
[3da002f7] ColorTypes v0.10.9
[5ae59095] Colors v0.12.4
[bbf7d656] CommonSubexpressions v0.3.0
[e66e0078] CompilerSupportLibraries_jll v0.3.4+0
[f68482b8] Cthulhu v1.3.0
[3a865a2d] CuArrays v2.2.2
[9a962f9c] DataAPI v1.4.0
[864edb3b] DataStructures v0.17.20
[163ba53b] DiffResults v1.0.2
[b552c78f] DiffRules v1.0.1
[ffbed154] DocStringExtensions v0.8.3
[e30172f5] Documenter v0.25.3
[e2ba6199] ExprTools v0.1.3
[1a297f60] FillArrays v0.8.14
[53c48c17] FixedPointNumbers v0.8.4
[587475ba] Flux v0.10.4
[1eca21be] FoldingTrees v1.0.1
[f6369f11] ForwardDiff v0.10.12
[0c68f7d7] GPUArrays v3.4.1
[b5f81e59] IOCapture v0.1.1
[7869d1d1] IRTools v0.4.1
[c8e1da08] IterTools v1.3.0
[692b3bcd] JLLWrappers v1.1.3
[682c06a0] JSON v0.21.1
[e5e0dc1b] Juno v0.8.4
[929cbde3] LLVM v1.7.0
[1914dd2f] MacroTools v0.5.6
[e89f7d12] Media v0.5.0
[e1d29d7a] Missings v0.4.4
[46d2c3a1] MuladdMacro v0.2.2
[872c559c] NNlib v0.6.6
[77ba4419] NaNMath v0.3.4
[efe28fd5] OpenSpecFun_jll v0.5.3+4
[bac558e1] OrderedCollections v1.3.2
[69de0a69] Parsers v1.0.11
[189a3867] Reexport v0.2.0
[ae029012] Requires v1.1.0
[a2af1166] SortingAlgorithms v0.3.1
[276daf66] SpecialFunctions v0.10.3
[90137ffa] StaticArrays v0.12.5
[2913bbd2] StatsBase v0.33.2
[a759f4b9] TimerOutputs v0.5.7
[3bb67fe8] TranscodingStreams v0.9.5
[a5390f91] ZipFile v0.9.3
[83775a58] Zlib_jll v1.2.11+18
[e88e6eb3] Zygote v0.4.22
[700de1a5] ZygoteRules v0.2.0
[2a0f44e3] Base64
[ade2ca70] Dates
[8bb1440f] DelimitedFiles
[8ba89e20] Distributed
[9fa8497b] Future
[b77e0a4c] InteractiveUtils
[76f85450] LibGit2
[8f399da3] Libdl
[37e2e46d] LinearAlgebra
[56ddb016] Logging
[d6f4376e] Markdown
[a63ad114] Mmap
[44cfe95a] Pkg
[de0858da] Printf
[9abbd945] Profile
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA
[9e88b42a] Serialization
[6462fe0b] Sockets
[2f01184e] SparseArrays
[10745b16] Statistics
[8dfed614] Test
[cf7118a7] UUIDs
[4ec0a83e] Unicode
ERROR: LoadError: LoadError: LoadError: UndefVarError: AddrSpacePtr not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at ./Base.jl:26
[2] top-level scope at /home/nima/.julia/packages/CUDAnative/ierw8/src/device/cuda/wmma.jl:56
[3] include(::Function, ::Module, ::String) at ./Base.jl:380
[4] include at ./Base.jl:368 [inlined]
[5] include(::String) at /home/nima/.julia/packages/CUDAnative/ierw8/src/CUDAnative.jl:1
[6] top-level scope at /home/nima/.julia/packages/CUDAnative/ierw8/src/device/cuda.jl:14
[7] include(::Function, ::Module, ::String) at ./Base.jl:380
[8] include at ./Base.jl:368 [inlined]
[9] include(::String) at /home/nima/.julia/packages/CUDAnative/ierw8/src/CUDAnative.jl:1
[10] top-level scope at /home/nima/.julia/packages/CUDAnative/ierw8/src/CUDAnative.jl:70
[11] include(::Function, ::Module, ::String) at ./Base.jl:380
[12] include(::Module, ::String) at ./Base.jl:368
[13] top-level scope at none:2
[14] eval at ./boot.jl:331 [inlined]
[15] eval(::Expr) at ./client.jl:467
[16] top-level scope at ./none:3
in expression starting at /home/nima/.julia/packages/CUDAnative/ierw8/src/device/cuda/wmma.jl:55
in expression starting at /home/nima/.julia/packages/CUDAnative/ierw8/src/device/cuda.jl:14
in expression starting at /home/nima/.julia/packages/CUDAnative/ierw8/src/CUDAnative.jl:70
ERROR: LoadError: Failed to precompile CUDAnative [be33ccc6-a3ff-5ff2-a52e-74243cff1e17] to /home/nima/.julia/compiled/v1.5/CUDAnative/4Zu2W_92tlf.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923
[6] include(::Function, ::Module, ::String) at ./Base.jl:380
[7] include(::Module, ::String) at ./Base.jl:368
[8] top-level scope at none:2
[9] eval at ./boot.jl:331 [inlined]
[10] eval(::Expr) at ./client.jl:467
[11] top-level scope at ./none:3
in expression starting at /home/nima/.julia/packages/CuArrays/YFdj7/src/CuArrays.jl:3
ERROR: LoadError: Failed to precompile CuArrays [3a865a2d-5b23-5a0f-bc46-62713ec82fae] to /home/nima/.julia/compiled/v1.5/CuArrays/7YFE0_92tlf.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923
[6] include(::Function, ::Module, ::String) at ./Base.jl:380
[7] include(::Module, ::String) at ./Base.jl:368
[8] top-level scope at none:2
[9] eval at ./boot.jl:331 [inlined]
[10] eval(::Expr) at ./client.jl:467
[11] top-level scope at ./none:3
in expression starting at /home/nima/.julia/packages/Flux/Fj3bt/src/Flux.jl:26
ERROR: LoadError: Failed to precompile Flux [587475ba-b771-5e3f-ad9e-33799f191a9c] to /home/nima/.julia/compiled/v1.5/Flux/QdkVy_92tlf.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
[3] _require(::Base.PkgId) at ./loading.jl:1030
[4] require(::Base.PkgId) at ./loading.jl:928
[5] require(::Module, ::Symbol) at ./loading.jl:923
[6] include(::String) at ./client.jl:457
[7] top-level scope at none:6
in expression starting at /home/nima/.julia/packages/Flux/Fj3bt/test/runtests.jl:1
ERROR: Package Flux errored during testing