If you're on Ubuntu 18.04, you can use sudo apt install nvidia-cuda-toolkit
. The version of CUDA in that package (as of January 20, 2021) is 10.1.
Once you've run that you can confirm that it is indeed 10.1 with nvcc --version
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…