# Warning: Package cuDNN not found in current path

**URL:** <https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242>\
**Category:** GPU\
**Tags:** cuda, flux\
**Created:** [September 25, 2023, 7:02pm UTC](https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242 "2023-09-25T19:02:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [September 25, 2023, 7:02pm UTC](https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242/1 "2023-09-25T19:02:56Z")

</div>

I get this warning while using Flux on a CUDA GPU:

```plaintext
┌ Warning: Package cuDNN not found in current path.
│ - Run `import Pkg; Pkg.add("cuDNN")` to install the cuDNN package, then restart julia.
│ - If cuDNN is not installed, some Flux functionalities will not be available when running on the GPU.
└ @ FluxCUDAExt ~/.julia/packages/Flux/u7QSl/ext/FluxCUDAExt/FluxCUDAExt.jl:56

```

I tried `pkg> add cuDNN`, but nothing happened. Plus, I thought cuDNN was included in CUDA. What should I do?

The script generates the above warning (and other errors) in the following environment:

```julia-repl
julia> VERSION
v"1.9.3"

(@v1.9) pkg> st CUDA
Status `~/.julia/environments/v1.9/Project.toml`
  [052768ef] CUDA v5.0.0

(@v1.9) pkg> st Flux
Status `~/.julia/environments/v1.9/Project.toml`
  [587475ba] Flux v0.14.6

```

The same script runs fine in an older environment:

```julia-repl
julia> VERSION
v"1.8.5"

(@v1.8) pkg> st CUDA
Status `~/.julia/environments/v1.8/Project.toml`
⌅ [052768ef] CUDA v4.0.1

(@v1.8) pkg> st Flux
Status `~/.julia/environments/v1.8/Project.toml`
⌅ [587475ba] Flux v0.13.14

```

---

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [September 26, 2023, 2:42am UTC](https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242/2 "2023-09-26T02:42:50Z")

</div>

I found a relevant part in the [Flux documentation](https://fluxml.ai/Flux.jl/stable/gpu/):

> NVIDIA GPU support requires the packages `CUDA.jl` and `cuDNN.jl` to be installed in the environment. In the julia REPL, type `] add CUDA, cuDNN` to install them.

Not sure what was wrong, but for some reason nothing happened when I tried to install `cuDNN` only by `pkg> add cuDNN` at the time of the original posting. After finding out the above part in the documentation, I executed `pkg> add CUDA, cuDNN` as instructed, and it started installing `cuDNN`.

---

<div class="post-metadata">

**Author:** ![hungpham3112](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hungpham3112/32/34315_2.png) [@hungpham3112](https://discourse.julialang.org/u/hungpham3112)\
**Post date:** [October 24, 2023, 5:50am UTC](https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242/3 "2023-10-24T05:50:04Z")

</div>

I didn’t find any documentation for cuDNN.jl. Do you see that? I even check on JuliaGPU but no hope. [Here](https://github.com/JuliaAttic/CUDNN.jl) is the best I can, but CUDNN seems different to cuDNN.

---

<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:** [October 24, 2023, 6:21am UTC](https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242/4 "2023-10-24T06:21:00Z")

</div>

> [@wsshin](#):
>
> nothing happened when I tried to install `cuDNN` only by `pkg> add cuDNN`

Then you must have cuDNN.jl installed already.

> [@hungpham3112](#):
>
> I didn’t find any documentation for cuDNN.jl.

cuDNN.jl is part of the CUDA.jl repository, [https://github.com/JuliaGPU/CUDA.jl/tree/master/lib/cudnn](https://github.com/JuliaGPU/CUDA.jl/tree/master/lib/cudnn).

---

<div class="post-metadata">

**Author:** ![axsk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/axsk/32/1952_2.png) [@axsk](https://discourse.julialang.org/u/axsk)\
**Post date:** [April 2, 2025, 12:27pm UTC](https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242/5 "2025-04-02T12:27:39Z")

</div>

I (and colleagues) regularly get this message as well when using a package that in turns uses cuDNN (and has it in its dependencies).  
`pkg> st -m` also displays cuDNN.

---

<div class="post-metadata">

**Author:** ![jbphyswx](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbphyswx/32/205640_2.png) [@jbphyswx](https://discourse.julialang.org/u/jbphyswx)\
**Post date:** [May 8, 2025, 10:22pm UTC](https://discourse.julialang.org/t/warning-package-cudnn-not-found-in-current-path/104242/6 "2025-05-08T22:22:09Z")

</div>

> [@axsk](#):
>
> I (and colleagues) regularly get this message as well when using a package that in turns uses cuDNN (and has it in its dependencies).  
> `pkg> st -m` also displays cuDNN.

Yeah I see this if a dependency brings in CUDA and cuDNN is not imported at the current directory top level (even if the dependency also brings in cuDNN and it’s in the Manifest.toml). This ends up being super annoying in Distributed contexts as it can print repeatedly in Distributed tasks.

I haven’t found an easy way to suppress the warning though..
