安装CUDA,UBUNTU 20.04后黑屏

安装CUDA,UBUNTU 20.04后黑屏

大家好,有人能帮我吗?安装 nvidia cuda 驱动程序后,屏幕变黑了。

UBUNTU 20.04,内核 5.8.0-55-generic

NVIDIA-SMI 465.27
驱动程序版本:465.27
CUDA 版本:11.3

20GB RAM、2GB Nvidia mx150、英特尔酷睿 i7-8550U。

我在尝试运行模型时也收到此消息:“RuntimeError:CUDA 内存不足。尝试分配 20.00 MiB(GPU 0;总容量 1.96 GiB;已分配 2.00 MiB;可用 9.50 MiB;PyTorch 共保留 4.00 MiB)”

来自日志文件的片段:

[29319.635864] NVRM:The NVIDIA probe routine failed for 1 device(s).

[29319.000029] NVRM: None of the NVIDIA devices were initialized.

[29319.002993] nvidia-nvlink: Unregistered the Nvlink Core, major device number 234

[29319.635059] nvidia-nvlink: Nvlink Core is being initialized, major device number 234

[29319.635823] NVRM: This is a 64-bit BAR mapped above 4GB by the system

[29319.635823] NVRM: BIOS or the Linux kernel, but the PCI bridge

[29319.635823] NVRM: immediately upstream of this GPU does not defineblack-screen-after-
install-of-nvidia-driver-ubuntu/109312

[29319.635823] NVRM: a matching prefetchable memory window.
[29319.635824] NVRM: This may be due to a known Linux kernel bug.  Please

[29319.635824] NVRM: see the README section on 64-bit BARs for additional

[29319.635824] NVRM: information.

**********************************************************

dmesg |grep -i bridge
[    0.303414] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.339965] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-fe])
[    0.347519] PCI host bridge to bus 0000:00
[    0.368977] pci 0000:00:1c.0: PCI bridge to [bus 01]
[    0.368980] pci 0000:00:1c.0:   bridge window [io  0x4000-0x4fff]
[    0.368984] pci 0000:00:1c.0:   bridge window [mem 0x93000000-0x93ffffff]
[    0.368989] pci 0000:00:1c.0:   bridge window [mem 0x80000000-0x91ffffff 64bit pref]
[    0.369455] pci 0000:00:1c.4: PCI bridge to [bus 02]
[    0.369458] pci 0000:00:1c.4:   bridge window [io  0x3000-0x3fff]
[    0.369461] pci 0000:00:1c.4:   bridge window [mem 0x94100000-0x941fffff]
[    0.374209] pci 0000:00:1c.5: PCI bridge to [bus 03]
[    0.374214] pci 0000:00:1c.5:   bridge window [mem 0x94000000-0x940fffff]
[    0.379452] pci 0000:00:02.0: vgaarb: bridge control possible
[    0.441100] pci 0000:01:00.0: can't claim BAR 6 [mem 0xfff80000-0xffffffff pref]: no compatible bridge window
[    0.441116] pci 0000:00:1c.0: PCI bridge to [bus 01]
[    0.441119] pci 0000:00:1c.0:   bridge window [io  0x4000-0x4fff]
[    0.441124] pci 0000:00:1c.0:   bridge window [mem 0x93000000-0x93ffffff]
[    0.441127] pci 0000:00:1c.0:   bridge window [mem 0x80000000-0x91ffffff 64bit pref]
[    0.441133] pci 0000:00:1c.4: PCI bridge to [bus 02]
[    0.441135] pci 0000:00:1c.4:   bridge window [io  0x3000-0x3fff]
[    0.441139] pci 0000:00:1c.4:   bridge window [mem 0x94100000-0x941fffff]
[    0.441146] pci 0000:00:1c.5: PCI bridge to [bus 03]
[    0.441150] pci 0000:00:1c.5:   bridge window [mem 0x94000000-0x940fffff]
[    8.398806] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.


****************
dmesg |grep BAR
[    0.348927] pci 0000:00:02.0: BAR 2: assigned to efifb
[    0.441100] pci 0000:01:00.0: can't claim BAR 6 [mem 0xfff80000-0xffffffff pref]: no compatible bridge window
[    0.441113] pci 0000:01:00.0: BAR 6: no space for [mem size 0x00080000 pref]
[    0.441114] pci 0000:01:00.0: BAR 6: failed to assign [mem size 0x00080000 pref]

*************

sudo lshw -c memory

*-memory UNCLAIMED
       description: Memory controller
       product: Sunrise Point-LP PMC
       vendor: Intel Corporation
       physical id: 1f.2
       bus info: pci@0000:00:1f.2
       version: 21
       width: 32 bits
       clock: 33MHz (30.3ns)
       capabilities: bus_master
       configuration: latency=0
       resources: memory:942ac000-942affff

相关内容