https://davidstutz.de/upgrading-cuda-and-installing-cudnn-for-caffe-and-tensorflow/ Check Ubuntu Version: lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic If NVIDIA Driver is not installed: cd ~/Downloads sudo sh ./NVIDIA-Linux-x86_64-410.104.run register the kernel module sources with dkms - no 32 bit - no X config - yes Check CUDA version: nvcc --version Check cuDNN version: whereis cudnn.h cudnn: /usr/include/cudnn.h cat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2 #define CUDNN_MAJOR 7 #define CUDNN_MINOR 4 #define CUDNN_PATCHLEVEL 2 -- #define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL) #include "driver_types.h" which means the version is 7.4.2. Uninstalling: Find the CUDA dir using: which nvcc Mine was: rb@rbhost:~$ which nvcc /usr/local/cuda-10.0/bin/nvcc To uninstall the CUDA Toolkit, run the uninstall script in `/usr/local/cuda-10.0/bin`...