Linux查看显卡设备信息

查看VGA设备

$ lspci | grep -i vga
08:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30)
(test_env) 

$ lspci -v -s 08:00.0     
08:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30) (prog-if 00 [VGA controller])
	Subsystem: ASPEED Technology, Inc. ASPEED Graphics Family
	Flags: bus master, medium devsel, latency 0, IRQ 16, NUMA node 0
	Memory at c6000000 (32-bit, non-prefetchable) [size=16M]
	Memory at c7000000 (32-bit, non-prefetchable) [size=128K]
	I/O ports at 5000 [size=128]
	Expansion ROM at  [disabled]
	Capabilities: 
	Kernel driver in use: ast
	Kernel modules: ast

查看NVIDIA设备

$ lspci | grep -i nvidia
84:00.0 3D controller: NVIDIA Corporation GP100GL [Tesla P100 PCIe 16GB] (rev a1)

$ lspci -v -s 84:00.0
84:00.0 3D controller: NVIDIA Corporation GP100GL [Tesla P100 PCIe 16GB] (rev a1)
	Subsystem: NVIDIA Corporation Device 118f
	Physical Slot: 5
	Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 1
	Memory at c8000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 3b800000000 (64-bit, prefetchable) [size=16G]
	Memory at 3bc00000000 (64-bit, prefetchable) [size=32M]
	Capabilities: 
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

$ ls /dev/nvidia*
/dev/nvidia0  /dev/nvidiactl  /dev/nvidia-uvm  /dev/nvidia-uvm-tools

你可能感兴趣的:(大数据技术,算法实践,人工智能,杂谈)