Follow the instructions here to install CUDA 10.2.
CUDA will be installed under usr/local
and the /usr/local/cuda
symlink should now be pointing to version 10.2.
Reboot and then try running one of the examples to confirm CUDA is correctly installed.