dell T7810 workstation with Xeon Cpus and a Quadro M4000 8GB GPU

installation on Ubuntu 18.04 LTS

==installation of nvidia drivers==
ubuntu-drivers devices
to check for recommended drivers for the graphics card

sudo ubuntu-drivers autoinstall

(sudo apt-get purge nvidia* if necessary)

==installation of cuda==
for u-net cuda 9.2

install gcc
sudo apt install gcc-6 g++-6

check cuda is correctly installed
nvcc --version

sudo apt-get install nvidia-cuda-toolkit

now cuda 9.1 is installed

echo 'export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc

echo 'export PATH=/usr/local/cuda-9.0/bin:$PATH' >> ~/.bashrc
download cudnn and install

sudo dpkg -i libcudnn7_7.1*+cuda9.1_amd64.deb