# Lambda Stack - CUDNN 8 Upgrade Query

**URL:** <https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966>\
**Category:** Technical Help\
**Created:** [November 6, 2020, 7:34am UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966 "2020-11-06T07:34:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![subhrajeitbhowmick](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@subhrajeitbhowmick](https://deeptalk.lambda.ai/u/subhrajeitbhowmick)\
**Post date:** [November 6, 2020, 7:34am UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966/1 "2020-11-06T07:34:39Z")

</div>

Hi,

I use a Tensorbook and need to leverage on Tensorflow GPU support for CUDA 11. Though the latest Lambda Stack upgrade switched my previous CUDA 10.2 to 11.1, the CUDNN version still remains 7.6.

Do we know of a timeline by when we can expect Lambda Stack to upgrade its CUDNN 7.6 to CUDNN 8.x?

Alternatively, is there a suggestion how to upgrade it manually without breaking the Lambda Stack - ensuring no compatibility issues in future upgrades of the Lambda Stack?

Many thanks in advance!

Regards.

---

<div class="post-metadata">

**Author:** ![sabalaba](https://sea1.discourse-cdn.com/flex019/user_avatar/deeptalk.lambda.ai/sabalaba/32/4_2.png) [@sabalaba](https://deeptalk.lambda.ai/u/sabalaba)\
**Post date:** [November 13, 2020, 5:45pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966/2 "2020-11-13T17:45:04Z")

</div>

Lambda Stack with CuDNN 8 is coming shortly.

In the mean time, you should be able to link to CUDNN with something like modifying your LD\_LIBRARY\_PATH to include a path to the libcudnn.so.8 files.

---

<div class="post-metadata">

**Author:** ![subhrajeitbhowmick](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@subhrajeitbhowmick](https://deeptalk.lambda.ai/u/subhrajeitbhowmick)\
**Post date:** [November 14, 2020, 9:54pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966/3 "2020-11-14T21:54:05Z")

</div>

Many thanks @sabalaba for your kind response!

I downloaded cuDNN 8 for Ubuntu 20.04 and added the LD\_LIBRARY\_PATH as per your suggestion.

However, while testing for Tensorflow’s GPU association, I received an error stating, “Could not load dynamic library ‘libcusolver.so.10’; dlerror: libcusolver.so.10: cannot open shared object file: No such file or directory”.

This might be resolved by completely removing all installed CUDA files and a fresh install of CUDA, but I fear, this would lead to an incongruity in the existing Lambda Stack.

Note: I even tried with Tensorflow 2.4.0-rc1 whose pip packages are now built with CUDA11 and cuDNN 8.0.2.

Would you kindly be able to suggest a solution here?

---

<div class="post-metadata">

**Author:** ![perreiradasilva-m](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@perreiradasilva-m](https://deeptalk.lambda.ai/u/perreiradasilva-m)\
**Post date:** [November 18, 2020, 11:53am UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966/4 "2020-11-18T11:53:18Z")

</div>

Hello to all,

Just to add more details @sabalaba (because I faced the same problem), it seems there is however a problem with the current lambdastack version. On a fresh install, any pytorch call to code that uses cudnn throws an error :  
“Could not load library libcudnn\_cnn\_train.so.8. Error: libcudnn\_ops\_train.so.8: cannot open shared object file: No such file or directory  
Please make sure libcudnn\_cnn\_train.so.8 is in your library path!”

The only way to get things working is to set LD\_LIBRARY\_PATH accordingly:  
`export LD_LIBRARY_PATH=/usr/lib/python3/dist-packages/torch/lib/`

But is seem not to be that lambda stack way.

I understand that cudnn 8 is not yet supported but in that case why does a fresh install try to use cudnn 8 by default ?

---

<div class="post-metadata">

**Author:** ![sabalaba](https://sea1.discourse-cdn.com/flex019/user_avatar/deeptalk.lambda.ai/sabalaba/32/4_2.png) [@sabalaba](https://deeptalk.lambda.ai/u/sabalaba)\
**Post date:** [December 1, 2020, 6:12pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966/5 "2020-12-01T18:12:21Z")

</div>

Is there a reason that you’re using a pip installed version of pytorch instead of the default Lambda Stack pytorch?

The default Lambda stack pytorch has cudnn built in and doesn’t throw that error.

```auto
>>> import torch
>>> torch. __path__
['/usr/lib/python3/dist-packages/torch']
>>> torch. __version__'1.6.0'

```

---

<div class="post-metadata">

**Author:** ![perreiradasilva-m](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@perreiradasilva-m](https://deeptalk.lambda.ai/u/perreiradasilva-m)\
**Post date:** [December 2, 2020, 7:23am UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966/6 "2020-12-02T07:23:33Z")

</div>

`Hello,  
No, not using any pip installed version of pytorch. Just Ubuntu 20.04 and a fresh install of lambda stack (nothing else added appart from jupyterhub). In that configuration I must export torch location in LD\_LIBRARY\_PATH. Otherwise I’ve got the reported error about libcudnn\_cnn\_train.so.8 not found :-(.  
Pytorch it self works fine, just the cudnn related part that fails. Reported torch version is however 1.7.0.  
\>\>\> import torch  
\>\>\> torch. **path**  
[‘/usr/lib/python3/dist-packages/torch’]  
\>\>\> torch. **version**  
‘1.7.0’

---

<div class="post-metadata">

**Author:** ![willkaes](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@willkaes](https://deeptalk.lambda.ai/u/willkaes)\
**Post date:** [December 6, 2020, 7:47am UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966/7 "2020-12-06T07:47:01Z")

</div>

Good information thanks for sharing  
[vmware](https://www.fieldengineer.com/skills/vmware-engineer)

---

<div class="post-metadata">

**Author:** ![mikey](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mikey](https://deeptalk.lambda.ai/u/mikey)\
**Post date:** [December 30, 2020, 8:26pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966/8 "2020-12-30T20:26:08Z")

</div>

I solved this problem by running this in python:

```auto
import torch
torch. __path__
>>> ['/some/path/to/torch']

```

Then in terminal:

```auto
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/some/path/to/torch

```

---

<div class="post-metadata">

**Author:** ![suvrat](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@suvrat](https://deeptalk.lambda.ai/u/suvrat)\
**Post date:** [April 23, 2021, 6:45am UTC](https://deeptalk.lambda.ai/t/lambda-stack-cudnn-8-upgrade-query/1966/9 "2021-04-23T06:45:50Z")

</div>

Any updates on when it will be supported by default?
