小言_互联网的博客

【linux 常用命令】查看gpu、显卡常用命令

445人阅读  评论(0)

1.查看显卡基本信息
lspci | grep -i nvidia
2.查看显卡驱动版本
nvidia-smi -a
3.查看gpu使用情况
nvidia-smi

(spam) [dongli@dt-gpu-1 train]$ nvidia-smi 
Fri Sep 27 16:42:33 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.87.00    Driver Version: 418.87.00    CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla P40           Off  | 00000000:82:00.0 Off |                    0 |
| N/A   44C    P0    54W / 250W |  22057MiB / 22919MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0    125983      C   python                                     22047MiB |
+-----------------------------------------------------------------------------+
(spam) [dongli@dt-gpu-1 train]$ lspci |grep -i nvidia
82:00.0 3D controller: NVIDIA Corporation GP102GL [Tesla P40] (rev a1)
(spam) [dongli@dt-gpu-1 train]$ lspci | grep -i nvidia
82:00.0 3D controller: NVIDIA Corporation GP102GL [Tesla P40] (rev a1)
(spam) [dongli@dt-gpu-1 train]$ 


转载:https://blog.csdn.net/u013421629/article/details/101544088
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场