2018/11/03 Updated by

CUDA

tips


[Up] Japanese English

nvidia-smi: GPUが使用しているメモリを調べる

Windows の場合は C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe が実行コマンドである。 PATH 環境変数にこのpathを加えておくこと。

Example of nvidia-smi
C:\Users\nitta> nvidie-smi 
Microsoft Windows [Version 10.0.17134.345]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\nitta>nvidia-smi
Sat Nov 03 18:01:08 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 416.34       Driver Version: 416.34       CUDA Version: 10.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 980M   WDDM  | 00000000:01:00.0  On |                  N/A |
| N/A   54C    P0    25W /  N/A |    741MiB /  8192MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1228    C+G   Insufficient Permissions                   N/A      |
|    0      3908    C+G   ...6)\Google\Chrome\Application\chrome.exe N/A      |
|    0      6700    C+G   C:\Windows\explorer.exe                    N/A      |
|    0      8212    C+G   ...oftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe N/A      |
|    0      8408    C+G   ...t_cw5n1h2txyewy\ShellExperienceHost.exe N/A      |
|    0      8708    C+G   ...dows.Cortana_cw5n1h2txyewy\SearchUI.exe N/A      |
|    0      9480    C+G   ...33.41.0_x64__kzf8qxf38zg5c\SkypeApp.exe N/A      |
|    0     10608    C+G   ...osoft.LockApp_cw5n1h2txyewy\LockApp.exe N/A      |
|    0     10924    C+G   ...al\Binaries\Win64\EpicGamesLauncher.exe N/A      |
|    0     11228    C+G   ...8.0_x64__8wekyb3d8bbwe\WinStore.App.exe N/A      |
|    0     13708    C+G   ... Files (x86)\Dropbox\Client\Dropbox.exe N/A      |
|    0     13748    C+G   ...e Stream\28.1.23.2113\GoogleDriveFS.exe N/A      |
|    0     14924    C+G   ...13811.0_x64__8wekyb3d8bbwe\Video.UI.exe N/A      |
|    0     15280    C+G   ...mmersiveControlPanel\SystemSettings.exe N/A      |
|    0     15496    C+G   ...tEdge_8wekyb3d8bbwe\MicrosoftEdgeCP.exe N/A      |
|    0     19180    C+G   ...ndows\System32\Kinect\KinectService.exe N/A      |
|    0     19924    C+G   ...x64__8wekyb3d8bbwe\Microsoft.Photos.exe N/A      |
+-----------------------------------------------------------------------------+

C:\Users\nitta>