nvidia-smi Sat Feb 1 13:37:16 2020 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 860M On | 00000000:01:00.0 Off | N/A | | N/A 46C P5 N/A / N/A | 399MiB / 2004MiB | 0% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 2036 G /usr/lib/xorg/Xorg 201MiB | | 0 3992 G /usr/bin/compiz 120MiB | | 0 4180 G ...quest-channel-token=9014704928365584033 73MiB | +-----------------------------------------------------------------------------+
四、踩坑记录
如果你安装的高版本的驱动,比如 nvidia-driver-450 以上的,在安装 CUDA 的过程中,可能会出现依赖错误。类似:
1 2 3 4 5
The following packages have unmet dependencies: nvidia-cuda-toolkit: Depends: nvidia-cuda-dev (= 11.0.85-3ubuntu) but it is not going to be installed. ... you might want to run 'apt --fix-broken install' to correct these. ...
解决方案
首先,按照命令行的提示,运行:
1
sudo apt --fix-broken install
如果,你可以成功安装,那么恭喜恭喜,成功解决。如果你也像我一样,出现类类似下面的错误:
1
dpkg error process archive /var/cache/apt/archives/nvidia-cuda-dev...