1. 程式人生 > >Ubuntu 16.04 下檢視gpu的執行情況

Ubuntu 16.04 下檢視gpu的執行情況

1.檢視gpu使用情況

nvidia-smi

2.每秒顯示異常

watch -n 1 nvidia-smi
[email protected]:~$ nvidia-smi
Mon Nov 12 20:13:17 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87                 Driver Version: 390.87                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 108...  Off  | 00000000:04:00.0  On |                  N/A |
| 34%   54C    P2   106W / 250W |  10797MiB / 11177MiB |     26%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1095      G   /usr/lib/xorg/Xorg                            14MiB |
|    0      7921      C   /home/hndx532/anaconda2/bin/python         10771MiB |
+-----------------------------------------------------------------------------+
[email protected]
:~$