CUDA Linux下查看GPU相关信息命令

命令:

lspci | grep -i nvidia

输出:

b:00.0 3D controller: NVIDIA Corporation GP100GL [Tesla P100 PCIe 16GB] (rev a1)
af:00.0 3D controller: NVIDIA Corporation GP100GL [Tesla P100 PCIe 16GB] (rev a1)

 命令:

nvidia-smi -L

输出:

GPU 0: Tesla P100-PCIE-16GB (UUID: GPU-658852dd-63f5-582e-a34f-41b9e40d10f9)
GPU 1: Tesla P100-PCIE-16GB (UUID: GPU-8b0b68ae-d897-bf98-a8ce-6d0c020ca346)

命令:

nvidia-smi

输出:

Thu Dec  5 04:08:13 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.74       Driver Version: 418.74       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 P100-PCIE...  Off  | 00000000:3B:00.0 Off |                    0 |
| N/A   43C    P0    35W / 250W |   5338MiB / 16280MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Tesla P100-PCIE...  Off  | 00000000:AF:00.0 Off |                  N/A |
| N/A   38C    P0    29W / 250W |     10MiB / 16280MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

 

你可能感兴趣的:(Problem,Be,Solved)