Can’t install Cuda and Nvidia driver successfully. I’ve tried at least 100 ways. This is the closest I’ve gotten.
Fresh Ubuntu 20.04 LTS install (erase eveything and reinstall) on my Asus TUF Dash F15 laptop with RTX 3080.
Downloaded cuda_11.2.2_460.32.03_linux.run
chmod +x ./cuda_11.2.2_460.32.03_linux.run
sudo sh cuda_11.2.2_460.32.02_linux.run
Got an error, checked /var/log/nvidia-installer.log
Log said to install gcc and make.
sudo apt install gcc
sudo apt install make
reboot
sudo sh cuda_11.2.2_460.32.02_linux.run
Says install is successful and make sure to include paths. I do that.
reboot
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Feb_14_21:12:58_PST_2021
Cuda compilation tools, release 11.2, V11.2.152
Build cuda_11.2.r11.2/compiler.29618528_0
sudo nvidia-smi
No devices were found
grep nvidia /etc/modprobe.d/* /lib/modprobe.d/*
/etc/modprobe.d/blacklist-framebuffer.conf:blacklist nvidiafb
/etc/modprobe.d/nvidia-installer-disable-nouveau.conf:# generated by nvidia-installer
/lib/modprobe.d/nvidia-installer-disable-nouveau.conf:# generated by nvidia-installer
/lib/modprobe.d/nvidia-runtimepm.conf:options nvidia "NVreg_DynamicPowerManagement=0x02"
ls /etc/modprobe.d
alsa-base.conf blacklist-modem.conf
amd64-microcode-blacklist.conf blacklist-oss.conf
blacklist-ath_pci.conf blacklist-rare-network.conf
blacklist.conf intel-microcode-blacklist.conf
blacklist-firewire.conf iwlwifi.conf
blacklist-framebuffer.conf nvidia-installer-disable-nouveau.conf
dmesg |grep -i NVRM
[ 2.058581] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 460.32.03 Sun Dec 27 19:00:34 UTC 2020
[ 4.362385] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:876)
[ 4.362409] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 4.503753] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:876)
[ 4.503799] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 25.317577] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:876)
[ 25.317603] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 25.459400] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:876)
[ 25.459420] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 36.598302] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:876)
[ 36.598333] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 36.740799] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:876)
[ 36.740828] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 1181.836573] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:876)
[ 1181.836594] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 1181.978424] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:876)
[ 1181.978470] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
lspci
0000:00:00.0 Host bridge: Intel Corporation Device 9a14 (rev 01)
0000:00:02.0 VGA compatible controller: Intel Corporation Device 9a49 (rev 01)
0000:00:04.0 Signal processing controller: Intel Corporation Device 9a03 (rev 01)
0000:00:06.0 PCI bridge: Intel Corporation Device 9a09 (rev 01)
0000:00:07.0 PCI bridge: Intel Corporation Device 9a23 (rev 01)
0000:00:08.0 System peripheral: Intel Corporation Device 9a11 (rev 01)
0000:00:0a.0 Signal processing controller: Intel Corporation Device 9a0d (rev 01)
0000:00:0d.0 USB controller: Intel Corporation Device 9a13 (rev 01)
0000:00:0d.2 USB controller: Intel Corporation Device 9a1b (rev 01)
0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller
0000:00:14.0 USB controller: Intel Corporation Device a0ed (rev 20)
0000:00:14.2 RAM memory: Intel Corporation Device a0ef (rev 20)
0000:00:14.3 Network controller: Intel Corporation Device a0f0 (rev 20)
0000:00:15.0 Serial bus controller [0c80]: Intel Corporation Device a0e8 (rev 20)
0000:00:15.1 Serial bus controller [0c80]: Intel Corporation Device a0e9 (rev 20)
0000:00:16.0 Communication controller: Intel Corporation Device a0e0 (rev 20)
0000:00:1c.0 PCI bridge: Intel Corporation Device a0b8 (rev 20)
0000:00:1c.3 PCI bridge: Intel Corporation Device a0bb (rev 20)
0000:00:1d.0 System peripheral: Intel Corporation Device 09ab
0000:00:1f.0 ISA bridge: Intel Corporation Device a082 (rev 20)
0000:00:1f.3 Audio device: Intel Corporation Device a0c8 (rev 20)
0000:00:1f.4 SMBus: Intel Corporation Device a0a3 (rev 20)
0000:00:1f.5 Serial bus controller [0c80]: Intel Corporation Device a0a4 (rev 20)
0000:01:00.0 VGA compatible controller: NVIDIA Corporation Device 2520 (rev a1)
0000:01:00.1 Audio device: NVIDIA Corporation Device 228e (rev a1)
0000:2e:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
10000:e0:1d.0 PCI bridge: Intel Corporation Device a0b0 (rev 20)
10000:e1:00.0 Non-Volatile memory controller: Silicon Motion, Inc. Device 2263 (rev 03)
modinfo nvidia
filename: /lib/modules/5.8.0-63-generic/kernel/drivers/video/nvidia.ko
alias: char-major-195-*
version: 460.32.03
supported: external
license: NVIDIA
srcversion: 1744B50B284E53E625E0B19
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends:
retpoline: Y
name: nvidia
vermagic: 5.8.0-63-generic SMP mod_unload modversions
parm: NvSwitchRegDwords:NvSwitch regkey (charp)
parm: NvSwitchBlacklist:NvSwitchBlacklist=uuid[,uuid...] (charp)
parm: nv_cap_enable_devfs:Enable (1) or disable (0) nv-caps devfs support. Default: 1 (int)
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_RmLogonRC:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_InitializeSystemMemoryAllocations:int
parm: NVreg_UsePageAttributeTable:int
parm: NVreg_RegisterForACPIEvents:int
parm: NVreg_EnablePCIeGen3:int
parm: NVreg_EnableMSI:int
parm: NVreg_TCEBypassMode:int
parm: NVreg_EnableStreamMemOPs:int
parm: NVreg_EnableBacklightHandler:int
parm: NVreg_RestrictProfilingToAdminUsers:int
parm: NVreg_PreserveVideoMemoryAllocations:int
parm: NVreg_EnableS0ixPowerManagement:int
parm: NVreg_S0ixPowerManagementVideoMemoryThreshold:int
parm: NVreg_DynamicPowerManagement:int
parm: NVreg_DynamicPowerManagementVideoMemoryThreshold:int
parm: NVreg_EnableUserNUMAManagement:int
parm: NVreg_MemoryPoolSize:int
parm: NVreg_KMallocHeapMaxSize:int
parm: NVreg_VMallocHeapMaxSize:int
parm: NVreg_IgnoreMMIOCheck:int
parm: NVreg_NvLinkDisable:int
parm: NVreg_EnablePCIERelaxedOrderingMode:int
parm: NVreg_RegisterPCIDriver:int
parm: NVreg_RegistryDwords:charp
parm: NVreg_RegistryDwordsPerDevice:charp
parm: NVreg_RmMsg:charp
parm: NVreg_GpuBlacklist:charp
parm: NVreg_TemporaryFilePath:charp
lsmod |grep nvidia
nvidia_drm 57344 0
nvidia_modeset 1228800 1 nvidia_drm
nvidia 34041856 4 nvidia_modeset
drm_kms_helper 217088 2 nvidia_drm,i915
drm 552960 8 drm_kms_helper,nvidia_drm,i915
lsmod |grep nouveau
//show empty
What next?