[TransferBench] Displaying PCIe Bus ID (#288)

* Adding PCIe BusID per GPU in topology display
This commit is contained in:
gilbertlee-amd
2020-10-21 16:13:36 -06:00
کامیت شده توسط 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);
}
}