How to Check for NVIDIA GPU and Set It Up in Ubuntu
If you want to run deep learning models or GPU-accelerated tasks on Ubuntu, having an NVIDIA GPU and the correct drivers is essential. This guide will help you check if a GPU is available and set it up properly for PyTorch. 1 Check if your system has an NVIDIA GPU Open a terminal and run: lspci | grep -i nvidia ✅ If output appears , your system has an NVIDIA GPU. 0000:01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce MX350] (rev a1) ❌ If no output , your system either doesn't have a GPU or it's disabled in BIOS. 💡 Tip: Take note of your GPU model. You'll need it to choose the correct driver. 2 Check if NVIDIA drivers are installed Run: nvidia-smi ✅ If working , you will see a table with GPU info, driver version, and CUDA version: +-----------------------------------------------------------------------------+ | N...