[TransferBench] Displaying PCIe Bus ID (#288)
* Adding PCIe BusID per GPU in topology display
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
GitHub
γονέας
769418c5c7
υποβολή
61e1a71d14
@@ -522,10 +522,12 @@ void DisplayTopology()
|
||||
printf(" |");
|
||||
for (int j = 0; j < numGpuDevices; j++)
|
||||
printf(" GPU %02d |", j);
|
||||
printf("\n");
|
||||
printf(" PCIe Bus ID\n");
|
||||
for (int j = 0; j <= numGpuDevices; j++)
|
||||
printf("--------+");
|
||||
printf("\n");
|
||||
printf("-------------\n");
|
||||
|
||||
char pciBusId[20];
|
||||
|
||||
for (int i = 0; i < numGpuDevices; i++)
|
||||
{
|
||||
@@ -547,7 +549,8 @@ void DisplayTopology()
|
||||
hopCount);
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
HIP_CALL(hipDeviceGetPCIBusId(pciBusId, 20, i));
|
||||
printf(" %s\n", pciBusId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user