Ubuntu 20.04 GPU Not Found

Solution 1:

EDIT: Given that you have WSL2, you should get the corresponding drivers. See CUDA on WSL.

For a guide on how to install, please refer to

https://docs.nvidia.com/cuda/wsl-user-guide/index.html#abstract

Related

  1. https://ubuntu.com/blog/getting-started-with-cuda-on-ubuntu-on-wsl-2
  2. https://medium.com/swlh/how-to-install-the-nvidia-cuda-toolkit-11-in-wsl2-88292cf4ab77
  3. https://www.reddit.com/r/bashonubuntuonwindows/comments/hxro9i/help_how_to_get_nvidia_driver_work_on_wsl2/
  4. https://www.reddit.com/r/bashonubuntuonwindows/comments/n8lkts/where_to_download_old_version_of_nvidia_wsl_driver/
  5. https://github.com/microsoft/WSL/issues/6323

It is very strange that the commands you posted do not even show your main graphics card.

Possible causes

(Strange hardware issues may be the culprit).

  1. GPU is disabled at the BIOS level. Check that. If you have double boot with Windows, that would be good for a comparison.
  2. Removing and replacing the CMOS battery may help.
  3. An HDMI cable may also be the problem.

Extra / useful info

Please post the output of:

  1. dpkg -l | grep linux-modules-nvidia
  2. dpkg -l | grep nvidia-driver
  3. uname -a
  4. inxi -G (you may have to install inxi)
  5. grep 10de /lib/udev/rules.d/*
  6. dmesg | grep nvidia
  7. dmesg | grep NV

Related

  1. https://ubuntuforums.org/showthread.php?t=2443222