相关命令
查看显卡驱动所使用的内核版本
cat /proc/driver/nvidia/version

-->
NVRM version: NVIDIA UNIX x86_64 Kernel Module  430.34  Wed Jun 26 12:19:48 CDT 2019
GCC v
  • 内核版本 Kernel Module 为 430.34, 系统内核 16.04.12
查看系统驱动日志
cat /var/log/dpkg.log | grep nvidia
查看驱动程序

sudo dpkg --list | grep nvidia-*

问题描述:

nvidia-smi

Failed to initialize NVML Driver/library version mismatch

解决方法:

重装CUDA

http://t.csdnimg.cn/4Nkby

重启命令的两种命令:

reboot
shutdown -r now

 之后出现的问题:

nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

解决方法如下: 

 http://t.csdnimg.cn/lP8Ia

成功!

总结:更新CUDA版本和驱动版本

更多推荐