failed to initialize nvml driver/library version mismatch

驱动和库的版本不对

看下驱动
dpkg -l | grep nvidia

看到

libnvidia-compute-470:amd64

cat /proc/driver/nvidia/version

卸载libnvidia-compute-470:amd64

dpkg -r libnvidia-compute-470:amd64

nvidia-smi即可看到正确的输出

参考资料

https://spring-quan.github.io/2019/03/29/nvidia-smi返回错误信息‘Failed-to-initialize-NVML-Driver-library-version-mismatch’/

上一篇:idea创建Maven工程


下一篇:雪花算法(附工具类)