# How to make CUDA.jl work in WSL2

**URL:** https://discourse.julialang.org/t/how-to-make-cuda-jl-work-in-wsl2/42474
**Category:** GPU
**Tags:** wsl2
**Created:** [July 3, 2020, 1:08pm UTC](https://discourse.julialang.org/t/how-to-make-cuda-jl-work-in-wsl2/42474 "2020-07-03T13:08:44Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![zwwi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zwwi/32/11932_2.png) [@zwwi](https://discourse.julialang.org/u/zwwi)
#### Post date: [July 6, 2020, 10:26am UTC](https://discourse.julialang.org/t/how-to-make-cuda-jl-work-in-wsl2/42474/6 "2020-07-06T10:26:04Z")

</div>

The issue was solved by adding

```julia
export LD_LIBRARY_PATH="/usr/lib/wsl/lib/:$LD_LIBRARY_PATH"

```

to the `.zshrc` file.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-make-cuda-jl-work-in-wsl2/42474)._
