我的华硕笔记本电脑上有这个GP108BM [GeForce MX250]
。我从“附加驱动程序”安装了驱动程序并运行了几个命令。
sudo prime-select nvidia
Info: the nvidia profile is already set
然而:
*-display
description: VGA compatible controller
product: UHD Graphics
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:148 memory:c2000000-c2ffffff memory:a0000000-afffffff ioport:4000(size=64) memory:c0000-dffff
*-display UNCLAIMED
description: 3D controller
product: GP108BM [GeForce MX250]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:02:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: memory:c3000000-c3ffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:3000(size=128) memory:c4000000-c407ffff
您可以在 中看到configuration driver=i915 latency=0
。在 about/settings 中:
我的计划是主要将其用于 fastai 和 pytorch (AI),但也可用于其他任何用途。据我了解,驱动程序已安装,但系统未将 nvidia GPU 识别为主要 GPU。任何帮助都将不胜感激。
答案1
遵循的步骤:
卸载 NVIDIA 驱动程序
sudo apt-get remove --purge '^nvidia-.*'
sudo apt-get install ubuntu-desktop
sudo apt-get --purge remove "*cublas*" "cuda*"
sudo apt-get --purge remove "*nvidia*"
sudo add-apt-repository --remove ppa:graphics-drivers/ppa
sudo rm /etc/X11/xorg.conf
sudo apt autoremove
sudo reboot
禁用安全启动。
重新安装驱动程序
sudo ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
sudo reboot
感谢@terrance 以及来自以下的帖子: https://forums.developer.nvidia.com/t/newly-installed-drivers-are-not-found-when-nvidia-smi-is-called/82686/6