Ubuntu - GPU - NVIDIA GPU - Check if a NVIDIA GPU is found

sudo apt install -y nvidia-detect

nvidia-detect

returns:

Detected NVIDIA GPUs:
01:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 940MX] [10de:134d] (rev a2)
 
Checking card:  NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
...