Ubuntu20.04下安装Cuda11.0+Nvidia-440+Cudnn7.1.4+Tensorflow1.9
硬件平台
HUAWEI Matebook 14
CPU:Intel® Core™ i5-8265U CPU @ 1.60GHz × 8
GPU:GeForce MX250/PCIe/SSE2 / GeForce MX250/PCIe/SSE2
Nvidia显卡驱动安装
- 更换国内的系统源,推荐Aliyun源
- update, upgrade
sudo apt update
sudo apt upgrade - 加入N卡驱动源
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update - 查看显卡驱动,会列出当前的显卡和可安装的驱动
ubuntu-drivers devices
jason@Jason-Matebook:~$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001D13sv000019E5sd00003E0Abc03sc02i00
vendor : NVIDIA Corporation
model : GP108M [GeForce MX250]
driver : nvidia-driver-440 - distro non-free recommended
driver : nvidia-driver-435 - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin - 直接安装推荐的驱动
sudo ubuntu-drivers autoinstall - 安装完重启:
sudo reboot - 查看一下显卡信息:
nvidia-smi
Sat Jul 11 11:39:23 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100 Driver Version: 440.100 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan