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.