I'm logged on to a remote machine and I'm trying to determine how many video cards are installed. The machine was built for CUDA operations so it's likely to have more than one NVIDIA card.> lspci | grep -E VGA|3Dgives02:00.0 3D controller: NVIDIA Corporation GF110GL [Tesla M2090] (rev a1)03:00.0 3D controller: NVIDIA Corporation GF110GL [Tesla M2090] (rev a1)0a:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR283:00.0 3D controller: NVIDIA Corporation GF110GL [Tesla M2090] (rev a1)84:00.0 3D controller: NVIDIA Corporation GF110GL [Tesla M2090] (rev a1)Does this imply four different video cards? If so, are these the devices? > ls /dev/nvidia* /dev/nvidia0  /dev/nvidia1  /dev/nvidia2  /dev/nvidia3  /dev/nvidiactl
How many distinct video cards do I have?
nvidia;devices;graphics
For the nvidia case, it turns out that nvidia-smi -L does what I'm looking for:LIST OPTIONS:      -L,   --list-gpus           Display a list of GPUs connected to the system.> nvidia-smi -LGPU 0: Tesla M2090 (UUID: GPU-29ca4022-cf9d-d39f-8c46-...)GPU 1: Tesla M2090 (UUID: GPU-1e282221-0aac-9a10-a46c-...)GPU 2: Tesla M2090 (UUID: GPU-5b912869-92d8-d599-7617-...)GPU 3: Tesla M2090 (UUID: GPU-a6d833f2-18a2-7331-24bb-...)