Here are the specific commands to check the GPU model number: Choose according to your environment.
Generic Commands
lshwCommand Get detailed information, including GPU model number.
sudo lshw -C displayExample Output 1:
*-display
description: VGA compatible controller
product: NVIDIA GeForce RTX 3080
vendor: NVIDIA CorporationExample 2: XServerVPS
*-display UNCLAIMED
description: VGA compatible controller
product: GD 5446
vendor: Cirrus Logic
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller bus_master
configuration: latency=0
resources: memory:c0000000-c1ffffff memory:c2083000-c2083fff memory:c0000-dffff
*-graphics
product: EFI VGA
physical id: 1
logical name: /dev/fb0
capabilities: fb
configuration: depth=32 resolution=800,600dmesg The model number may be printed when the command driver is initialized.
dmesg | grep -i vga1. For NVIDIA GPUs
nvidia-smicommand
Detailed information is displayed, including the model number.
nvidia-smi --query-gpu=name --format=csvExample output:
name NVIDIA GeForce RTX 3080lspciCommand NVIDIA GPU model number.
lspci | grep -i nvidiaExample output:
01:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3080] (rev a1)2. For AMD GPUs
lspciCommand AMD GPU model number.
lspci | grep -i amdExample output:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800 XT]rocm-smi If the command ROCm tool is installed, you can also check the model number. Copy bash coderocm-smi
3. For Intel GPUs
lspciCommand to check the model number of your Intel GPU.
lspci | grep -i intelExample output:
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Coffee Lake)glxinfoCommand to check OpenGL renderer information (including Intel built-in GPUs).
glxinfo | grep "OpenGL renderer"Example output:
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)On Windows
dxdiagcommand
Win + RPress and type “dxdiag”.
The Display tab displays the GPU model number.
PowerShell command model number.
Get-WmiObject Win32_VideoController | Select-Object NameExample output:
Name ---- NVIDIA GeForce RTX 3080
Comments