From befaa35e12e4460bac9d5707228e0186168e81fe Mon Sep 17 00:00:00 2001 From: Wenkai Du <43822138+wenkaidu@users.noreply.github.com> Date: Wed, 3 Nov 2021 16:22:21 -0700 Subject: [PATCH] profiling: fix incorrect print out in timing profile (#457) [ROCm/rccl commit: 26fc6b0919c576c619af758938dce8d3259797ee] --- projects/rccl/src/init.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/projects/rccl/src/init.cc b/projects/rccl/src/init.cc index 78ff291fd3..d27e2fc78b 100644 --- a/projects/rccl/src/init.cc +++ b/projects/rccl/src/init.cc @@ -335,12 +335,10 @@ static ncclResult_t commFree(ncclComm_t comm) { for (int channel=0; channelnChannels, comm->p2pnChannels); channel++) { if (comm->channels[channel].send_byte) INFO(NCCL_INIT, "# [%03d:%02d] Proxy Send %7.3f ms (%ld bytes %d measurements)", - comm->rank, channel, (comm->channels[channel].bw_count) ? - (float)comm->channels[channel].bw_cumulative/comm->channels[channel].bw_count : 0, + comm->rank, channel, (float)comm->channels[channel].bw_cumulative, comm->channels[channel].send_byte, comm->channels[channel].bw_count); if (comm->channels[channel].recv_byte) INFO(NCCL_INIT, "# [%03d:%02d] Proxy Recv %7.3f ms (%ld bytes %d measurements)", - comm->rank, channel, (comm->channels[channel].bw_count) ? - (float)comm->channels[channel].bw_cumulative/comm->channels[channel].bw_count : 0, + comm->rank, channel, (float)comm->channels[channel].bw_cumulative, comm->channels[channel].recv_byte, comm->channels[channel].bw_count); } #else