Not able to install cudnn_v8.9.7 with cuda 11.8 on ubuntu 20.04

here is what i followed:

on a fresh ubuntu, i installed cuda 11.8. rebooted the system and verified using nvidia-smi

then i downloaded the cudnn_v8.9.7. file name: [Local Installer for Ubuntu20.04 x86_64 (Deb)]

This is how i installed cudnn

  • open terminal
  • navigate to downloaded folder
  • copy and paste the following commands
    • sudo dpkg -i cudnn-local-repo-ubuntu2004-8.9.7.29_1.0-1_amd64.deb
    • sudo cp /var/cudnn-local-repo-*/cudnn-local-*keyring.gpg /usr/share/keyrings/
    • sudo apt update
  • check available versions of libcudnn8 for CUDA. copy and paste the following in terminal
    • sudo apt list libcudnn8 it was 8.9.7.29-1+cuda11.8
  • Install the runtime, developer library and code samples using these commands
    • sudo apt install libcudnn8=8.x.x.x-1+cudaX.Y
    • sudo apt install libcudnn8-dev=8.x.x.x-1+cudaX.Y
    • sudo apt install libcudnn8-samples=8.x.x.x-1+cudaX.Y
  • reboot the system

Verification

  • install the following libraries
    • sudo apt-get install libfreeimage3 libfreeimage-dev
  • Copy the cuDNN samples to a writable path.
    • cp -r /usr/src/cudnn_samples_v8/ $HOME
  • Go to the writable path.
    • cd $HOME/cudnn_samples_v8/mnistCUDNN
  • Compile the mnistCUDNN sample.
    • make clean && make
    • Run the mnistCUDNN sample.
    • ./mnistCUDNN.

the output i get is attached in screenshot. the test is not passed. what am i doing wrong

also tried using v8.7.0

Hi @syedmusakazmi99 ,
Apologies for delayed response.
Would you want to check and validate the installation for cudnn
https://docs.nvidia.com/deeplearning/cudnn/installation/linux.html

Thanks