This guide tries to make sense of installing NVIDIA CUDA on Ubuntu.
Disclaimer: Installing CUDA is a somewhat tedious and can be a problematic process. This guide worked for me, though if you have an unusual configuration you might need additional preparations to make this work. My machines are mostly blank Ubuntu machines.
For reference NVIDIA's official guides are here for CUDA and cuDNN.
Last updated: 2019-07-27