Add PCI domain and device ID for GPU device BDF display

[ROCm/rccl-tests commit: b4300cc79d]
Šī revīzija ir iekļauta:
David Addison
2025-02-28 13:23:26 -08:00
vecāks b740da9a31
revīzija d516392fac
+2 -2
Parādīt failu
@@ -984,8 +984,8 @@ testResult_t run() {
int rank = proc*nThreads*nGpus+i;
cudaDeviceProp prop;
CUDACHECK(cudaGetDeviceProperties(&prop, cudaDev));
len += snprintf(line+len, MAX_LINE-len, "# Rank %2d Group %2d Pid %6d on %10s device %2d [0x%02x] %s\n",
rank, color, getpid(), hostname, cudaDev, prop.pciBusID, prop.name);
len += snprintf(line+len, MAX_LINE-len, "# Rank %2d Group %2d Pid %6d on %10s device %2d [%04x:%02x:%02x] %s\n",
rank, color, getpid(), hostname, cudaDev, prop.pciDomainID, prop.pciBusID, prop.pciDeviceID, prop.name);
maxMem = std::min(maxMem, prop.totalGlobalMem);
}