question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loaded runtime CuDNN library: 8.0.5 but source was compiled with: 8.1.0.

See original GitHub issue

When I run the train_test.py within the ViT project (https://github.com/google-research/vision_transformer/blob/master/vit_jax/train_test.py, which is based on JAX) I got the bug and the error looks like this:

Convolution performance may be suboptimal.
2021-04-20 23:10:23.094910: E external/org_tensorflow/tensorflow/stream_executor/cuda/cuda_dnn.cc:352] Loaded runtime CuDNN library: 8.0.5 but source was compiled with: 8.1.0.  CuDNN library needs to have matching major version and equal or higher minor version. If using a binary install, upgrade your CuDNN library.  If building from sources, make sure the library loaded at runtime is compatible with the version specified during compile configuration.

And it ends up with: RuntimeError: Unimplemented: DNN library is not found.

I use CUDA 11.2 and cudnn 8.0.5. I install the jax with: pip install --upgrade jax jaxlib==0.1.65+cuda112 -f https://storage.googleapis.com/jax-releases/jax_releases.html

But this version only supports the cudnn 8.1.0 not cudnn 8.0.5.

Is there a jaxlib version which also supports CUDA 11.2 and cudnn 8.0.5?

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hawkinspcommented, Apr 22, 2021

Actually, I have another thing you can try. It turns out that CUDA 11.1 wheels are actually compatible with CUDA 11.2, and they are built with CUDNN 8.0. So you could install the cuda111 wheel, and provided you set an environment variable telling it where the CUDA 11.2 installation is (XLA_FLAGS=--xla_gpu_cuda_data_dir=/usr/local/cuda/) then I think everything should work!

(We’re thinking about doing that instead of shipping CUDA 11.2 wheels at all, now that backward compatibility between minor CUDA versions is a thing.)

1reaction
hawkinspcommented, Apr 21, 2021

In our wheel build, we pin the oldest release of CuDNN that Nvidia provides for a given CUDA version: https://cs.opensource.google/jax/jax/+/master:build/install_cuda.sh;drc=55c75c8ca30be89f1c6b9d19214cb23f429c6f47;l=32

We build in a Ubuntu 16.04 docker container, and for Ubuntu 16.04 and CUDA 11.2, the oldest wheel appears to be cudnn 8.1: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/

So there’s no easy fix to this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loaded runtime CuDNN library: 8.0.5 but source was ... - GitHub
5 but source was compiled with: 8.1.0. CuDNN library needs to have matching major version and equal or higher minor version. If using...
Read more >
Loaded runtime CuDNN library: 8.0.5 but source was ...
5 but source was compiled with: 8.1.0." I solved it by downgrading the TensorFlow version, here it says that you use a new...
Read more >
Loaded runtime CuDNN library: 8.0.5 but source was ...
5 but source was compiled with: 8.1.0. CuDNN library needs to have matching major version and equal or higher minor version. If using...
Read more >
Loaded runtime CuDNN library: 8.0.5 but source ... - CSDN博客
Loaded runtime CuDNN library : 8.0.5 but source was compiled with: 8.1.0 · 项目场景: · 问题描述: · 原因分析: · 解决方案:.
Read more >
Release Notes :: NVIDIA Deep Learning cuDNN Documentation
Compared to cuDNN 8.0.5, there is a known ~17% performance regression on SSD ... The cuDNN static builds load NVRTC dynamically when using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found