# Cannot install CUDA.jl on WIndows

**URL:** <https://discourse.julialang.org/t/cannot-install-cuda-jl-on-windows/83372>\
**Category:** General Usage\
**Tags:** cuda\
**Created:** [June 26, 2022, 9:28pm UTC](https://discourse.julialang.org/t/cannot-install-cuda-jl-on-windows/83372 "2022-06-26T21:28:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sairus7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sairus7/32/10816_2.png) [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Post date:** [June 26, 2022, 9:28pm UTC](https://discourse.julialang.org/t/cannot-install-cuda-jl-on-windows/83372/1 "2022-06-26T21:28:36Z")

</div>

Cannot install CUDA.jl on WIndows.  
Is there a workaround for this?  
Should I try it with WSL or manualy download and install CUDA toolkit?

```julia
julia> using CUDA
julia> CUDA.versioninfo()
 Downloaded artifact: CUDA
┌ Warning: Unable to use CUDA from artifacts: Could not find or download a compatible artifact for your platform (x86_64-w64-mingw32-libgfortran5-cxx11-julia_version+1.7.2).
│ If you think this is in error, please file an issue.
└ @ CUDA.Deps C:\Users\sairu\.julia\packages\CUDA\tTK8Y\deps\bindeps.jl:84
┌ Warning: Unable to use a local CUDA installation: Could not find the nvdisasm binary.
│ If CUDA is installed, please make sure this binary is in your PATH.
└ @ CUDA.Deps C:\Users\sairu\.julia\packages\CUDA\tTK8Y\deps\bindeps.jl:94
ERROR: No suitable CUDA installation available.
Please look at the warnings above for possible reasons.

```

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [June 26, 2022, 11:00pm UTC](https://discourse.julialang.org/t/cannot-install-cuda-jl-on-windows/83372/2 "2022-06-26T23:00:39Z")

</div>

Hmm, it’s not matching against CUDA\_jll somehow:

> **[Release CUDA-v11.7.0+0 · JuliaBinaryWrappers/CUDA\_jll.jl](https://github.com/JuliaBinaryWrappers/CUDA_jll.jl/releases/tag/CUDA-v11.7.0%2B0)**
>
> Contribute to JuliaBinaryWrappers/CUDA\_jll.jl development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [June 27, 2022, 7:33am UTC](https://discourse.julialang.org/t/cannot-install-cuda-jl-on-windows/83372/3 "2022-06-27T07:33:34Z")

</div>

What version of CUDA.jl? Can you try running with JULIA\_DEBUG=CUDA? Also, what driver version (`CUDA.version()`)?

---

<div class="post-metadata">

**Author:** ![sairus7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sairus7/32/10816_2.png) [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Post date:** [June 27, 2022, 4:46pm UTC](https://discourse.julialang.org/t/cannot-install-cuda-jl-on-windows/83372/4 "2022-06-27T16:46:34Z")

</div>

Tried this in a new Julia terminal, and it worked without errors:

```julia
julia> ENV["JULIA_DEBUG"] = "CUDA"
"CUDA"

julia> using CUDA

julia> CUDA.version()
┌ Debug: Could not unload the system CUDA library; this will prevent use of the forward-compatible package
└ @ CUDA C:\Users\sairu\.julia\packages\CUDA\tTK8Y\lib\cudadrv\CUDAdrv.jl:69
v"11.4.0"

julia> CUDA.versioninfo()
┌ Debug: Trying to use artifacts...
└ @ CUDA.Deps C:\Users\sairu\.julia\packages\CUDA\tTK8Y\deps\bindeps.jl:164
┌ Debug: Selecting artifacts based on driver compatibility 11.4.0
└ @ CUDA.Deps C:\Users\sairu\.julia\packages\CUDA\tTK8Y\deps\bindeps.jl:178
  Downloaded artifact: CUDA
┌ Debug: Using CUDA 11.7.0 from an artifact at C:\Users\sairu\.julia\artifacts\fd3b38cf5ade69a121c1ed6bc7a0a47f930ac0a1
└ @ CUDA.Deps C:\Users\sairu\.julia\packages\CUDA\tTK8Y\deps\bindeps.jl:205
CUDA toolkit 11.7, artifact installation
NVIDIA driver 472.19.0, for CUDA 11.4
CUDA driver 11.4

Libraries:
- CUBLAS: 11.10.1
- CURAND: 10.2.10
- CUFFT: 10.7.1
- CUSOLVER: 11.3.5
- CUSPARSE: 11.7.3
- CUPTI: 17.0.0
- NVML: 11.0.0+472.19
  Downloaded artifact: CUDNN
┌ Debug: Using CUDNN from an artifact at C:\Users\sairu\.julia\artifacts\1a54a5d914c297394fc55b6aa7e4e68ff283303e
└ @ CUDA.Deps C:\Users\sairu\.julia\packages\CUDA\tTK8Y\deps\bindeps.jl:576
- CUDNN: 8.30.2 (for CUDA 11.5.0)┌ Debug: CuDNN (v8302) function cudnnGetVersion() called:
│ Time: 2022-06-27T19:41:03.405872 (0d+0h+0m+1s since start)
│ Process=1768; Thread=23056; GPU=NULL; Handle=NULL; StreamId=NULL.
└ @ CUDA.CUDNN C:\Users\sairu\.julia\packages\CUDA\tTK8Y\lib\cudnn\CUDNN.jl:136

  Downloaded artifact: CUTENSOR
┌ Debug: Using CUTENSOR library cutensor from an artifact at C:\Users\sairu\.julia\artifacts\b82bb42c0e83d6eff5dca5be2acac39a1f088b91
└ @ CUDA.Deps C:\Users\sairu\.julia\packages\CUDA\tTK8Y\deps\bindeps.jl:643
- CUTENSOR: 1.4.0 (for CUDA 11.5.0)

Toolchain:
- Julia: 1.7.2
- LLVM: 12.0.1
┌ Debug: Toolchain with LLVM 12.0.1, CUDA driver 11.4 and toolkit 11.7 supports devices 3.5, 3.7, 5.0, 5.2, 5.3, 6.0, 6.1, 6.2, 7.0, 7.2, 7.5 and 8.0; PTX 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4, 6.5 and 7.0
└ @ CUDA.Deps C:\Users\sairu\.julia\packages\CUDA\tTK8Y\deps\compatibility.jl:222
- PTX ISA support: 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4, 6.5, 7.0
┌ Debug: Toolchain with LLVM 12.0.1, CUDA driver 11.4 and toolkit 11.7 supports devices 3.5, 3.7, 5.0, 5.2, 5.3, 6.0, 6.1, 6.2, 7.0, 7.2, 7.5 and 8.0; PTX 3.2, 4.0, 4.1, 4.2, 4.3, 5.0, 6.0, 6.1, 6.3, 6.4, 6.5 and 7.0
└ @ CUDA.Deps C:\Users\sairu\.julia\packages\CUDA\tTK8Y\deps\compatibility.jl:222
- Device capability support: sm_35, sm_37, sm_50, sm_52, sm_53, sm_60, sm_61, sm_62, sm_70, sm_72, sm_75, sm_80

1 device:
  0: NVIDIA GeForce RTX 3060 Laptop GPU (sm_86, 4.628 GiB / 6.000 GiB available)

julia> [CUDA.capability(dev) for dev in CUDA.devices()]
1-element Vector{VersionNumber}:
 v"8.6.0"

julia> cu(rand(5,5))*cu(rand(5))
5-element CuArray{Float32, 1, CUDA.Mem.DeviceBuffer}:
 0.43582758
 0.67973685
 0.99499965
 0.8340414
 0.49534583
```

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [June 27, 2022, 5:37pm UTC](https://discourse.julialang.org/t/cannot-install-cuda-jl-on-windows/83372/5 "2022-06-27T17:37:15Z")

</div>

Maybe it was a network issue then during artifact download.
