# CuArrays warning: You are using CUDNN 7.1.4 for CUDA 9.0.0 with CUDA toolkit 9.2.148; these might be incompatible

**URL:** <https://discourse.julialang.org/t/cuarrays-warning-you-are-using-cudnn-7-1-4-for-cuda-9-0-0-with-cuda-toolkit-9-2-148-these-might-be-incompatible/35891>\
**Category:** GPU\
**Tags:** cuarrays\
**Created:** [March 12, 2020, 5:43pm UTC](https://discourse.julialang.org/t/cuarrays-warning-you-are-using-cudnn-7-1-4-for-cuda-9-0-0-with-cuda-toolkit-9-2-148-these-might-be-incompatible/35891 "2020-03-12T17:43:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil\_Tomson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phil_tomson/32/3575_2.png) [@Phil\_Tomson](https://discourse.julialang.org/u/Phil_Tomson)\
**Post date:** [March 12, 2020, 5:43pm UTC](https://discourse.julialang.org/t/cuarrays-warning-you-are-using-cudnn-7-1-4-for-cuda-9-0-0-with-cuda-toolkit-9-2-148-these-might-be-incompatible/35891/1 "2020-03-12T17:43:14Z")

</div>

I was trying to run the Flux modelzoo MNIST mlp.jl example and I notice these warning coming from CuArrays.jl:

```julia
julia> include("mlp.jl")
[Info: Precompiling Flux [587475ba-b771-5e3f-ad9e-33799f191a9c]
┌ Warning: CuArrays.jl only supports CUDNN v7.6 or higher
└ @ CuArrays ~/.julia/packages/CuArrays/A6GUx/src/CuArrays.jl:122
┌ Warning: You are using CUDNN 7.1.4 for CUDA 9.0.0 with CUDA toolkit 9.2.148; these might be incompatible.

```

However, I’ve got CUDNN 7.6.5 installed and nvidia-smi reports that I’m on CUDA Version 10.1.

Why does CuArrays.jl think I’m using CUDA 9.0.0 and CUDNN 7.1.4?  
Is there some configuration to tell CuArrays.jl to use different versions of CUDA/CUDNN libs?

I also get the same warnings above if I just do:

> pkg\> test CuArrays

Julia 1.3.1, CuArrays v1.7.3

---

<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:** [March 12, 2020, 6:04pm UTC](https://discourse.julialang.org/t/cuarrays-warning-you-are-using-cudnn-7-1-4-for-cuda-9-0-0-with-cuda-toolkit-9-2-148-these-might-be-incompatible/35891/2 "2020-03-12T18:04:03Z")

</div>

Did you see my comments on Slack? Copying them here:

> maybe you have multiple libcudnn’s on your system?  
> try running with JULIA\_DEBUG=all to see which CUDA and libcudnn it picked up

> [@Phil\_Tomson](#):
>
> However, I’ve got CUDNN 7.6.5 installed and nvidia-smi reports that I’m on CUDA Version 10.1.

The CUDA compatibility version of your driver, as reported by nvidia-smi, is separate from the actual CUDA toolkit you have installed.

---

<div class="post-metadata">

**Author:** ![Phil\_Tomson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phil_tomson/32/3575_2.png) [@Phil\_Tomson](https://discourse.julialang.org/u/Phil_Tomson)\
**Post date:** [March 12, 2020, 7:05pm UTC](https://discourse.julialang.org/t/cuarrays-warning-you-are-using-cudnn-7-1-4-for-cuda-9-0-0-with-cuda-toolkit-9-2-148-these-might-be-incompatible/35891/3 "2020-03-12T19:05:03Z")

</div>

Sorry, didn’t see the response on slack…

I’m pretty sure there are multiple CUDNN libraries installed on my system, do I just get rid of all but the latest or is there a way to tell Julia to use a specific one (via environment variable or some similar mechanism)?

---

<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:** [March 13, 2020, 6:14am UTC](https://discourse.julialang.org/t/cuarrays-warning-you-are-using-cudnn-7-1-4-for-cuda-9-0-0-with-cuda-toolkit-9-2-148-these-might-be-incompatible/35891/4 "2020-03-13T06:14:56Z")

</div>

There aren’t specific env vars to override cudnn, but if it’s at the same root as a compatible CUDA installation you can define CUDA\_PATH to have that override detection. And even easier: the next version of CUDAnative/CuArrays will use its own CUDA/libcudnn through BinaryBuilder.

---

<div class="post-metadata">

**Author:** ![Phil\_Tomson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phil_tomson/32/3575_2.png) [@Phil\_Tomson](https://discourse.julialang.org/u/Phil_Tomson)\
**Post date:** [March 13, 2020, 3:23pm UTC](https://discourse.julialang.org/t/cuarrays-warning-you-are-using-cudnn-7-1-4-for-cuda-9-0-0-with-cuda-toolkit-9-2-148-these-might-be-incompatible/35891/5 "2020-03-13T15:23:22Z")

</div>

I figured it out. I had an old version of CUDNN installed in a directory and LD\_LIBRARY\_PATH was pointing to it. Most likely from some old instructions for getting an old version of Tensorflow running.
