[英]How can I get the list of GPU cards to which are connected monitors?
How can I get the list of GPU cards to which are connected monitors? 如何获得连接显示器的GPU卡列表?
Can I get a list with the parameters: pciBusID, pciDeviceID, pciDomainID? 我可以获得一个参数列表:pciBusID,pciDeviceID,pciDomainID?
We can use utility nvidia-smi , which contained in the nVidia Video Drivers, to indicate to which GPU-card display is connected (only for professional GPU-card: Quadro / Tesla): 我们可以使用包含在nVidia视频驱动程序中的实用程序nvidia-smi来指示连接的GPU卡显示器(仅适用于专业GPU卡:Quadro / Tesla):
example of nvidia-smi output: nvidia-smi输出的示例:
+------------------------------------------------------+
| NVIDIA-SMI 332.88 Driver Version: 332.88 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro K4000 WDDM | 0000:01:00.0 Off | N/A |
| 30% 30C P8 9W / 87W | 3027MiB / 3071MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GT 640 WDDM | 0000:02:00.0 N/A | N/A |
| 40% 27C N/A N/A / N/A | 2005MiB / 2047MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
| 2 Quadro K4000 WDDM | 0000:03:00.0 On | N/A |
| 30% 34C P8 11W / 87W | 3028MiB / 3071MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
Where Disp.A - Shows the on which GPU-card Display is Active: Disp.A - 显示哪个GPU卡显示处于活动状态:
Then we can say, that display is connected to GPU: 2 Quadro K4000 0000:03:00.0 . 然后我们可以说,显示器连接到GPU: 2 Quadro K4000 0000:03:00.0 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.