I was trying to use my Laptop GPU with CUDA support to render images faster on Blender, but I receiving this error message when trying to enable it on Edit -> Preferences -> System -> Cycles Render Devices:
"No compatible GPUs found for Cycles Requires NVIDIA GPU with compute capability 3.0."
After many testings I got it working:
$ sudo apt install nvidia-driver-535 nvidia-dkms-535
$ sudo apt install nvidia-settings
$ sudo apt install nvidia-cuda-toolkit
Then after restarting the computer it worked:
$ nvidia-smi
Sun Jun 23 18:54:12 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01 Driver Version: 535.183.01 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 3050 ... Off | 00000000:01:00.0 Off | N/A |
| N/A 49C P8 9W / 40W | 571MiB / 4096MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 2422 G /usr/lib/xorg/Xorg 167MiB |
| 0 N/A N/A 2685 G /usr/bin/gnome-shell 147MiB |
| 0 N/A N/A 3439 G blender 71MiB |
| 0 N/A N/A 3701 G ...irefox/4451/usr/lib/firefox/firefox 172MiB |
+---------------------------------------------------------------------------------------+