Error While adding CuArrays.jl package

There are two problems that I am facing first is that-
I have tried CUDA.has_cuda(), and it gave me false.

The second is that when I tried to add CuArrays.jl it gave me this error-

julia> import Pkg

julia> Pkg.add("CuArrays")
   Updating registry at `~/.julia/registries/General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:951
  Resolving package versions...
ERROR: Unsatisfiable requirements detected for package CuArrays [3a865a2d]:
 CuArrays [3a865a2d] log:
 ├─possible versions are: [0.2.1, 0.3.0, 0.4.0, 0.5.0, 0.6.0-0.6.2, 0.7.0-0.7.3, 0.8.0-0.8.1, 0.9.0-0.9.1, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0, 1.4.0-1.4.7, 1.5.0, 1.6.0, 1.7.0-1.7.3, 2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.2.1, 0.3.0, 0.4.0, 0.5.0, 0.6.0-0.6.2, 0.7.0-0.7.3, 0.8.0-0.8.1, 0.9.0-0.9.1, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0, 1.4.0-1.4.7, 1.5.0, 1.6.0, 1.7.0-1.7.3, 2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2]
 ├─restricted by compatibility requirements with CUDAapi [3895d2a7] to versions: [0.6.0-0.6.2, 0.7.0-0.7.3, 0.8.0-0.8.1, 0.9.0-0.9.1, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0, 1.4.0-1.4.7, 1.5.0, 1.6.0, 1.7.0-1.7.3, 2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2] or uninstalled, leaving only versions: [0.6.0-0.6.2, 0.7.0-0.7.3, 0.8.0-0.8.1, 0.9.0-0.9.1, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0, 1.4.0-1.4.7, 1.5.0, 1.6.0, 1.7.0-1.7.3, 2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2]
 │ └─CUDAapi [3895d2a7] log:
 │   ├─possible versions are: [0.5.0-0.5.4, 0.6.0-0.6.3, 1.0.0-1.0.1, 1.1.0, 1.2.0, 2.0.0, 2.1.0, 3.0.0, 3.1.0, 4.0.0] or uninstalled
 │   └─restricted by compatibility requirements with CuArrays [3a865a2d] to versions: [0.5.0-0.5.4, 0.6.0-0.6.3, 1.0.0-1.0.1, 1.1.0, 1.2.0, 2.0.0, 2.1.0, 3.0.0, 3.1.0, 4.0.0]
 │     └─CuArrays [3a865a2d] log: see above
 ├─restricted by compatibility requirements with GPUArrays [0c68f7d7] to versions: [0.2.1, 2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2] or uninstalled, leaving only versions: [2.0.0-2.0.1, 2.1.0, 2.2.0-2.2.2]
 │ └─GPUArrays [0c68f7d7] log:
 │   ├─possible versions are: [0.3.0-0.3.4, 0.4.0-0.4.2, 0.5.0, 0.6.0-0.6.1, 0.7.0-0.7.2, 1.0.0-1.0.4, 2.0.0-2.0.1, 3.0.0-3.0.1, 3.1.0, 3.2.0, 3.3.0, 3.4.0-3.4.1, 4.0.0-4.0.1, 5.0.0, 5.1.0, 5.2.0-5.2.1, 6.0.0-6.0.1, 6.1.0-6.1.2, 6.2.0] or uninstalled
 │   ├─restricted by compatibility requirements with CUDA [052768ef] to versions: [3.4.0-3.4.1, 4.0.0-4.0.1, 5.0.0, 5.1.0, 5.2.0-5.2.1, 6.0.1, 6.1.0-6.1.2, 6.2.0]
 │   │ └─CUDA [052768ef] log:
 │   │   ├─possible versions are: [0.1.0, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0-1.3.3, 2.0.0-2.0.2, 2.1.0, 2.2.0-2.2.1, 2.3.0, 2.4.0-2.4.2, 2.5.0, 2.6.0-2.6.2] or uninstalled
 │   │   ├─restricted to versions * by an explicit requirement, leaving only versions [0.1.0, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0-1.3.3, 2.0.0-2.0.2, 2.1.0, 2.2.0-2.2.1, 2.3.0, 2.4.0-2.4.2, 2.5.0, 2.6.0-2.6.2]
 │   │   ├─restricted by julia compatibility requirements to versions: [1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0-1.3.3, 2.0.0-2.0.2, 2.1.0, 2.2.0-2.2.1, 2.3.0, 2.4.0-2.4.2] or uninstalled, leaving only versions: [1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0-1.3.3, 2.0.0-2.0.2, 2.1.0, 2.2.0-2.2.1, 2.3.0, 2.4.0-2.4.2]
 │   │   └─restricted by compatibility requirements with LLVM [929cbde3] to versions: [0.1.0, 1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0-1.3.3] or uninstalled, leaving only versions: [1.0.0-1.0.2, 1.1.0, 1.2.0-1.2.1, 1.3.0-1.3.3]
 │   │     └─LLVM [929cbde3] log:
 │   │       ├─possible versions are: [0.9.0-0.9.15, 1.0.0, 1.1.0-1.1.1, 1.2.0, 1.3.0-1.3.4, 1.4.0-1.4.1, 1.5.0-1.5.2, 1.6.0, 1.7.0, 2.0.0, 3.0.0, 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.5.0-3.5.2, 3.6.0] or uninstalled
 │   │       ├─restricted by compatibility requirements with CUDA [052768ef] to versions: [1.5.0-1.5.2, 1.6.0, 1.7.0, 2.0.0, 3.0.0, 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.5.0-3.5.2, 3.6.0]
 │   │       │ └─CUDA [052768ef] log: see above
 │   │       └─restricted by compatibility requirements with CUDAnative [be33ccc6] to versions: [0.9.6-0.9.15, 1.0.0, 1.1.0-1.1.1, 1.2.0, 1.3.0-1.3.4, 1.4.0-1.4.1, 1.5.0-1.5.2, 1.6.0, 1.7.0], leaving only versions: [1.5.0-1.5.2, 1.6.0, 1.7.0]
 │   │         └─CUDAnative [be33ccc6] log:
 │   │           ├─possible versions are: [0.7.0, 0.8.0-0.8.10, 0.9.0-0.9.1, 0.10.0-0.10.1, 1.0.0-1.0.1, 2.0.0-2.0.1, 2.1.0-2.1.3, 2.2.0-2.2.1, 2.3.0-2.3.1, 2.4.0, 2.5.0-2.5.5, 2.6.0, 2.7.0, 2.8.0-2.8.1, 2.9.0-2.9.1, 2.10.0-2.10.2, 3.0.0-3.0.4, 3.1.0, 3.2.0] or uninstalled
 │   │           ├─restricted by compatibility requirements with CuArrays [3a865a2d] to versions: [0.7.0, 0.8.0-0.8.10, 0.9.0-0.9.1, 0.10.0-0.10.1, 1.0.0-1.0.1, 2.0.0-2.0.1, 2.1.0-2.1.3, 2.2.0-2.2.1, 2.3.0-2.3.1, 2.4.0, 2.5.0-2.5.5, 2.6.0, 2.7.0, 2.8.0-2.8.1, 2.9.0-2.9.1, 2.10.0-2.10.2, 3.0.0-3.0.4, 3.1.0, 3.2.0]
 │   │           │ └─CuArrays [3a865a2d] log: see above
 │   │           ├─restricted by compatibility requirements with Adapt [79e6a3ab] to versions: [0.7.0, 0.8.0-0.8.10, 0.9.0-0.9.1, 2.2.1, 2.3.0-2.3.1, 2.4.0, 2.5.0-2.5.5, 2.6.0, 2.7.0, 2.8.0-2.8.1, 2.9.0-2.9.1, 2.10.0-2.10.2, 3.0.0-3.0.4, 3.1.0, 3.2.0] or uninstalled, leaving only versions: [0.7.0, 0.8.0-0.8.10, 0.9.0-0.9.1, 2.2.1, 2.3.0-2.3.1, 2.4.0, 2.5.0-2.5.5, 2.6.0, 2.7.0, 2.8.0-2.8.1, 2.9.0-2.9.1, 2.10.0-2.10.2, 3.0.0-3.0.4, 3.1.0, 3.2.0]
 │   │           │ └─Adapt [79e6a3ab] log:
 │   │           │   ├─possible versions are: [0.3.0-0.3.1, 0.4.0-0.4.2, 1.0.0-1.0.1, 1.1.0, 2.0.0-2.0.2, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 3.0.0, 3.1.0-3.1.1, 3.2.0] or uninstalled
 │   │           │   ├─restricted by compatibility requirements with CUDA [052768ef] to versions: [1.0.0-1.0.1, 1.1.0, 2.0.0-2.0.2, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 3.0.0, 3.1.0-3.1.1, 3.2.0]
 │   │           │   │ └─CUDA [052768ef] log: see above
 │   │           │   ├─restricted by compatibility requirements with CUDA [052768ef] to versions: [2.0.0-2.0.2, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 3.0.0, 3.1.0-3.1.1, 3.2.0]
 │   │           │   │ └─CUDA [052768ef] log: see above
 │   │           │   └─restricted by compatibility requirements with CUDA [052768ef] to versions: [2.0.0-2.0.2, 2.1.0, 2.2.0, 2.3.0, 2.4.0]
 │   │           │     └─CUDA [052768ef] log: see above
 │   │           └─restricted by compatibility requirements with GPUCompiler [61eb1bfa] to versions: [0.7.0, 0.8.0-0.8.10, 0.9.0-0.9.1, 0.10.0-0.10.1, 1.0.0-1.0.1, 2.0.0-2.0.1, 2.1.0-2.1.3, 2.2.0-2.2.1, 2.3.0-2.3.1, 2.4.0, 2.5.0-2.5.5, 2.6.0, 2.7.0, 2.8.0-2.8.1, 2.9.0-2.9.1, 2.10.0-2.10.2, 3.0.0-3.0.4] or uninstalled, leaving only versions: [0.7.0, 0.8.0-0.8.10, 0.9.0-0.9.1, 2.2.1, 2.3.0-2.3.1, 2.4.0, 2.5.0-2.5.5, 2.6.0, 2.7.0, 2.8.0-2.8.1, 2.9.0-2.9.1, 2.10.0-2.10.2, 3.0.0-3.0.4]
 │   │             └─GPUCompiler [61eb1bfa] log:
 │   │               ├─possible versions are: [0.1.0, 0.2.0, 0.3.0, 0.4.0-0.4.1, 0.5.0-0.5.5, 0.6.0-0.6.1, 0.7.0-0.7.3, 0.8.0-0.8.3, 0.9.0-0.9.2, 0.10.0, 0.11.0] or uninstalled
 │   │               ├─restricted by compatibility requirements with CUDA [052768ef] to versions: [0.3.0, 0.4.0-0.4.1, 0.5.0-0.5.5, 0.6.0-0.6.1, 0.7.0-0.7.3, 0.8.1-0.8.3, 0.9.0-0.9.2, 0.10.0]
 │   │               │ └─CUDA [052768ef] log: see above
 │   │               ├─restricted by julia compatibility requirements to versions: [0.1.0, 0.2.0, 0.3.0, 0.4.0-0.4.1, 0.5.0-0.5.5, 0.6.0-0.6.1, 0.7.0-0.7.3, 0.8.0-0.8.3] or uninstalled, leaving only versions: [0.3.0, 0.4.0-0.4.1, 0.5.0-0.5.5, 0.6.0-0.6.1, 0.7.0-0.7.3, 0.8.1-0.8.3]
 │   │               ├─restricted by compatibility requirements with CUDA [052768ef] to versions: [0.4.0-0.4.1, 0.5.0-0.5.5, 0.6.0-0.6.1, 0.7.0-0.7.3, 0.8.1-0.8.3]
 │   │               │ └─CUDA [052768ef] log: see above
 │   │               └─restricted by compatibility requirements with LLVM [929cbde3] to versions: [0.1.0, 0.2.0, 0.3.0, 0.4.0-0.4.1] or uninstalled, leaving only versions: 0.4.0-0.4.1
 │   │                 └─LLVM [929cbde3] log: see above
 │   ├─restricted by compatibility requirements with CUDA [052768ef] to versions: [4.0.0-4.0.1, 5.0.0, 5.1.0, 5.2.0-5.2.1, 6.0.1, 6.1.0-6.1.2, 6.2.0]
 │   │ └─CUDA [052768ef] log: see above
 │   └─restricted by compatibility requirements with CUDA [052768ef] to versions: [4.0.0-4.0.1, 5.0.0, 5.1.0, 5.2.0-5.2.1]
 │     └─CUDA [052768ef] log: see above
 └─restricted by compatibility requirements with GPUArrays [0c68f7d7] to versions: 0.2.1 or uninstalled — no versions left
   └─GPUArrays [0c68f7d7] log: see above
Stacktrace:
 [1] propagate_constraints!(::Pkg.Resolve.Graph, ::Set{Int64}; log_events::Bool) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:1005
 [2] propagate_constraints! at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:946 [inlined] (repeats 2 times)
 [3] simplify_graph!(::Pkg.Resolve.Graph, ::Set{Int64}; clean_graph::Bool) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:1460
 [4] simplify_graph! at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:1460 [inlined] (repeats 2 times)
 [5] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:375
 [6] targeted_resolve at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1114 [inlined]
 [7] tiered_resolve(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1100
 [8] _resolve at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1120 [inlined]
 [9] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1135
 [10] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Linux, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:188
 [11] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:139
 [12] #add#21 at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
 [13] add at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:67 [inlined]
 [14] #add#20 at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:66 [inlined]
 [15] add at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:66 [inlined]
 [16] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:65
 [17] add(::String) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/Pkg/src/API.jl:65
 [18] top-level scope at REPL[151]:1

Please help me out; I am new to GPU computation.

Can you share your CUDA.versioninfo()?

Don’t use CuArrays.jl, that package is no longer needed, since everything is included in CUDA.jl. You’re getting a version error because CuArrays is unmaintained and doesn’t support any recent versions of packages.

1 Like

If has_cuda() returns false, it can’t find libcuda.so. That’s a system library you should put in a discoverable location (e.g. by adding an entry to /etc/ld.so.conf).

julia> using CUDA

julia> CUDA.versioninfo()
┌ Error: Recursion during initialization of CUDA.jl
└ @ CUDA ~/.julia/packages/CUDA/fqK2Y/src/initialization.jl:38
┌ Error: Error during initialization of CUDA.jl
│   exception =
│    CUDA error (code 100, CUDA_ERROR_NO_DEVICE)
│    Stacktrace:
│     [1] throw_api_error(::CUDA.cudaError_enum) at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/lib/cudadrv/error.jl:97
│     [2] __configure__() at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:93
│     [3] macro expansion at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:30 [inlined]
│     [4] macro expansion at ./lock.jl:183 [inlined]
│     [5] _functional(::Bool) at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:26
│     [6] functional(::Bool) at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:19
│     [7] macro expansion at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:47 [inlined]
│     [8] toolkit_version at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/deps/bindeps.jl:26 [inlined]
│     [9] versioninfo(::Base.TTY) at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/utilities.jl:43 (repeats 2 times)
│     [10] top-level scope at REPL[149]:1
│     [11] eval(::Module, ::Any) at ./boot.jl:331
│     [12] eval_user_input(::Any, ::REPL.REPLBackend) at /jobfs/14911938.gadi-pbs/0/julia/1.5.3/source/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:134
│     [13] repl_backend_loop(::REPL.REPLBackend) at /jobfs/14911938.gadi-pbs/0/julia/1.5.3/source/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:195
│     [14] start_repl_backend(::REPL.REPLBackend, ::Any) at /jobfs/14911938.gadi-pbs/0/julia/1.5.3/source/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:180
│     [15] run_repl(::REPL.AbstractREPL, ::Any; backend_on_current_task::Bool) at /jobfs/14911938.gadi-pbs/0/julia/1.5.3/source/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:292
│     [16] run_repl(::REPL.AbstractREPL, ::Any) at /jobfs/14911938.gadi-pbs/0/julia/1.5.3/source/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:288
│     [17] (::Base.var"#807#809"{Bool,Bool,Bool,Bool})(::Module) at ./client.jl:399
│     [18] #invokelatest#1 at ./essentials.jl:710 [inlined]
│     [19] invokelatest at ./essentials.jl:709 [inlined]
│     [20] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:383
│     [21] exec_options(::Base.JLOptions) at ./client.jl:313
│     [22] _start() at ./client.jl:506
└ @ CUDA ~/.julia/packages/CUDA/fqK2Y/src/initialization.jl:34
ERROR: CUDA.jl did not successfully initialize, and is not usable.
If you did not see any other error message, try again in a new session
with the JULIA_DEBUG environment variable set to 'CUDA'.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:48 [inlined]
 [3] toolkit_version at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/deps/bindeps.jl:26 [inlined]
 [4] versioninfo(::Base.TTY) at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/utilities.jl:43 (repeats 2 times)
 [5] top-level scope at REPL[149]:1

This throws some error.

“some error” being CUDA_ERROR_NO_DEVICE, indicating that you don’t have a GPU? Or that you’ve set CUDA_VISIBLE_DEVICES to a value that excludes any of your GPUs, or something like that. Either way, a system configuration issue.

@maleadt , sorry sir, you are correct. I have tried this command on a normal node. I thought it has to do with just CUDA modules and file. Pardon me. I will check in the GPU backed node.

@maleadt ,@jpsamaroo,

julia> using CUDA

julia> CUDA.versioninfo()
Downloading artifact: CUDA110
-=O=-                                                             #   #  # #  
Downloading artifact: CUDA110
-=O=-                                                         #    #  #  #    
Downloading artifact: CUDA102
-=O=-                                                   #    #    #   #       
Downloading artifact: CUDA102
-=O=-                                                   #    #    #   #       
Downloading artifact: CUDA101
-=O=-                                                   #    #    #   #       
Downloading artifact: CUDA101
-=O=-                                                   #    #    #   #       
┌ Error: Error during initialization of CUDA.jl
│   exception =
│    Could not find a suitable CUDA installation
│    Stacktrace:
│     [1] error(::String) at ./error.jl:33
│     [2] __runtime_init__() at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:103
│     [3] macro expansion at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:32 [inlined]
│     [4] macro expansion at ./lock.jl:183 [inlined]
│     [5] _functional(::Bool) at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:26
│     [6] functional(::Bool) at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:19
│     [7] macro expansion at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:47 [inlined]
│     [8] toolkit_version at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/deps/bindeps.jl:26 [inlined]
│     [9] versioninfo(::Base.TTY) at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/utilities.jl:43 (repeats 2 times)
│     [10] top-level scope at REPL[149]:1
│     [11] eval(::Module, ::Any) at ./boot.jl:331
│     [12] eval_user_input(::Any, ::REPL.REPLBackend) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:134
│     [13] repl_backend_loop(::REPL.REPLBackend) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:195
│     [14] start_repl_backend(::REPL.REPLBackend, ::Any) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:180
│     [15] run_repl(::REPL.AbstractREPL, ::Any; backend_on_current_task::Bool) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:292
│     [16] run_repl(::REPL.AbstractREPL, ::Any) at /scratch/ds2/julia/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:288
│     [17] (::Base.var"#807#809"{Bool,Bool,Bool,Bool})(::Module) at ./client.jl:399
│     [18] #invokelatest#1 at ./essentials.jl:710 [inlined]
│     [19] invokelatest at ./essentials.jl:709 [inlined]
│     [20] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:383
│     [21] exec_options(::Base.JLOptions) at ./client.jl:313
│     [22] _start() at ./client.jl:506
└ @ CUDA ~/.julia/packages/CUDA/fqK2Y/src/initialization.jl:34
ERROR: CUDA.jl did not successfully initialize, and is not usable.
If you did not see any other error message, try again in a new session
with the JULIA_DEBUG environment variable set to 'CUDA'.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] macro expansion at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/initialization.jl:48 [inlined]
 [3] toolkit_version at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/deps/bindeps.jl:26 [inlined]
 [4] versioninfo(::Base.TTY) at /home/552/ss1986/.julia/packages/CUDA/fqK2Y/src/utilities.jl:43 (repeats 2 times)
 [5] top-level scope at REPL[149]:1

I again added CUDA hoping that there might be some problem in installing and again installing CUDA can rebuild things.


julia> CUDA.version()
v"11.0.0"

Now it give me this.

The error message is pretty clear on what you should try. Or does everything work now, as per your last post?

Sir can you point out how to do that. I have no idea about it. How to set JULIA_DEBUG environment variable?

Depends on how you start Julia, but from the terminal you could do JULIA_DEBUG=CUDA julia ....

Sir, I use ubuntu. Julia is installed in one directory and I use to call julia in that perticular directory. This is how I use julia REPL. The moment I used this command I got this

[ss1986@gadi-login-06 ~]$ cd /scratch/ds2/julia/julia
[ss1986@gadi-login-06 julia]$ JULIA_DEBUG=CUDA julia ....
bash: julia: command not found
[ss1986@gadi-login-06 julia]$ 

Try to replace julia with ./path/to/bin/julia but don’t forget the leading debug variable