My laptop is automatically switching to Intel integrated graphics from NVIDIA dedicated graphics by itself. It works for some time after I do 'sudo prime-select nvidia' and reboot, but then it switches automatically. I have set the prime profile as performance mode, and Ubuntu power mode is also set to performance. Pytorch or tensorflow can't find any CUDA device. I'm using NVIDIA drivers 535 on Ubuntu 23.04.
I have also checked BIOS settings. I have two options there - switchable graphics and Intel only. No NVIDIA only option. So I set it to switchable graphics.
Laptop: Lenovo IdeaPad Gaming 3 16IAH7
CPU: 12th Gen Intel® Core™ i7-12700H × 20
Dedicated GPU: NVIDIA RTX 3060 Mobile
Bookmarks