cuda 10.2 ubuntu code example
Example 1: cuda version
nvcc --version
Example 2: install nvidia cuda toolkit ubuntu 20.04
$ sudo apt update
$ sudo apt install nvidia-cuda-toolkit
nvcc --version
$ sudo apt update
$ sudo apt install nvidia-cuda-toolkit