Author

Topic: Correlating GPU to PCI Slot [Windows] (Read 178 times)

member
Activity: 61
Merit: 10
November 20, 2017, 10:55:17 AM
#2
i noticed that GPU number starts from the closest to the CPU. Meaning GPU 0 is closest to the CPU and it goes on from there. hope this helps
newbie
Activity: 6
Merit: 0
November 20, 2017, 09:56:10 AM
#1
It really is a pain to identify which GPU needs attention based on information available in Windows. 

The closest I have come to identifying a GPU index to its PCI slot is demonstrated in the below Powershell script.  But even then, each Windows install is different so this procedure can't really be reproduced.  I am posting this in case someone has come across a better method or can expand on this script.

The idea behind this script is to identify all PCI devices and their children in Windows.  Then, one has to unplug GPU by GPU and correlate the PCI device to a physical PCI slot.  Once you have this cross reference, you can disable the GPUs you need in order to identify them.  The disabled GPUs will output a ProblemCode other than zero in the script.

Required DeviceManagement Cmdlets:
https://gallery.technet.microsoft.com/Device-Management-7fad2388

Powershell Script:
https://pastebin.com/x3zzzgru

Powershell Output:
https://i.imgur.com/S4KtFAB.png

/c
Jump to: