Installing specific version of CUDNN on Ubuntu 20.04 with Package Manager

I have most of what I need working, I’m using the Ubuntu repo (Index of /compute/cuda/repos/ubuntu2004/x86_64) and I can install specific versions of CUDA, for example sudo apt-get install cuda-11.3 installs to /usr/local/cuda-11.3 and there’s a sym link to /usr/local/cuda and update-alternatives appears to work find (I also have 11.0 installed).

The issue is I also want to install the correct version of CuDNN and TensorRT and I’m unsure what the correct sudo apt-get install for these are - I downloaded the deb files but that doesn’t seem to be working - they don’t seem to install side by side.

I’ve also set my LD_LIBRARY_PATH based of the symlink so it “should” point to the correct libraries but I’m getting downstream errors that seem to indicate that the incorrect .so is being found.

How do I install a specific side-by-side versions of the extras like CuDNN using a package manger?

Hi,

Please refer to the installation guide.