How to Install CUDA in Ubuntu 16.04 - Raidin/deeplearning-research GitHub Wiki
$ sudo apt update
$ sudo apt -y install build-essential
$ wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/[CUDA-REPO]
# example
# wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64
$ sudo dpkg -i cuda-repo-ubuntu1604-10-0-local-10.0.130-410.48_1.0-1_amd64
$ sudo apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub
$ sudo apt update
$ sudo apt -y install cuda
# version info
$ nvcc --version
# GPU status
$ nvidia-smi
# GPU device info
$ sudo apt -y install cmake
$ cd /usr/local/cuda/samples/1_Utilities/deviceQuery
$ make
$ ./deviceQuery