admin管理员组文章数量:1586673
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]$
Drivers 驱动
CUDA-一种由Nvidia推出的通用并行计算架构和应用程序编程接口模型。02
cuDNN-一套Nvidia专门为深度神经网络设计的GPU计算加速库。
> nvidia-smi 展示nvidia显卡使用信息
4、动态查看gpu使用情况
watch -n 1 nvidia-smi
+-----------------------------------------------------------------------------+
| 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 31C P0 47W / 250W | 0MiB / 22919MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
版权声明:本文标题:【linux 常用命令】查看gpu、显卡常用命令 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1727987069a1141166.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论