Skip to content

Commit

Permalink
Revert log strings in init.cc (NVIDIA#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Gozali authored and GitHub Enterprise committed Oct 23, 2024
1 parent 99554d1 commit 088f59f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ static ncclResult_t collNetInitRailRankMap(ncclComm_t comm) {

comm->collNetDenseToUserRank = ncclMemoryStackAlloc<int>(&comm->memPermanent, comm->nRanks);
comm->collNetUserToDenseRank = ncclMemoryStackAlloc<int>(&comm->memPermanent, comm->nRanks);
// initialize collNetUserToDenseRank[rank]
// initialize collNetUserToDenseRank[rank]
comm->collNetUserToDenseRank[rank] = -1;
for (int h = 0; h < comm->collNetHeadsNum; h++) {
nonHeadMask ^= 1ull << comm->rankToLocalRank[comm->collNetHeads[h]];
Expand Down Expand Up @@ -811,7 +811,7 @@ static ncclResult_t collNetTrySetup(ncclComm_t comm, ncclComm_t parent, struct n
comm->intraHighestTransportType = highestTypes[i];
}

INFO(NCCL_INIT, "Connected CollNet");
INFO(NCCL_INIT, "rank %d Connected CollNet", rank);

exit:
free(infos);
Expand Down Expand Up @@ -1538,10 +1538,10 @@ static ncclResult_t ncclCommInitRankFunc(struct ncclAsyncJob* job_) {
comm->commHash = getHash(job->commId.internal, NCCL_UNIQUE_ID_BYTES);

if (job->parent) {
INFO(NCCL_INIT,"ncclCommSplit comm %p cudaDev %d nvmlDev %d busId %lx parent %p color %d key %d commId 0x%llx - Init START",
INFO(NCCL_INIT,"ncclCommSplit comm %p rank %d nranks %d cudaDev %d nvmlDev %d busId %lx parent %p color %d key %d commId 0x%llx - Init START",
comm, comm->rank, comm->nRanks, comm->cudaDev, comm->nvmlDev, comm->busId, job->parent, job->color, job->key, (unsigned long long)hashUniqueId(job->commId));
} else {
INFO(NCCL_INIT,"ncclCommInitRank comm %p cudaDev %d nvmlDev %d busId %lx commId 0x%llx - Init START",
INFO(NCCL_INIT,"ncclCommInitRank comm %p rank %d nranks %d cudaDev %d nvmlDev %d busId %lx commId 0x%llx - Init START",
comm, comm->rank, comm->nRanks, comm->cudaDev, comm->nvmlDev, comm->busId, (unsigned long long)hashUniqueId(job->commId));
}

Expand All @@ -1567,10 +1567,10 @@ static ncclResult_t ncclCommInitRankFunc(struct ncclAsyncJob* job_) {
}

if (job->parent) {
INFO(NCCL_INIT,"ncclCommSplit comm %p cudaDev %d nvmlDev %d busId %lx parent %p color %d key %d commId 0x%llx - Init COMPLETE",
INFO(NCCL_INIT,"ncclCommSplit comm %p rank %d nranks %d cudaDev %d nvmlDev %d busId %lx parent %p color %d key %d commId 0x%llx - Init COMPLETE",
comm, comm->rank, comm->nRanks, comm->cudaDev, comm->nvmlDev, comm->busId, job->parent, job->color, job->key, (unsigned long long)hashUniqueId(job->commId));
} else {
INFO(NCCL_INIT,"ncclCommInitRank comm %p cudaDev %d nvmlDev %d busId %lx commId 0x%llx - Init COMPLETE",
INFO(NCCL_INIT,"ncclCommInitRank comm %p rank %d nranks %d cudaDev %d nvmlDev %d busId %lx commId 0x%llx - Init COMPLETE",
comm, comm->rank, comm->nRanks, comm->cudaDev, comm->nvmlDev, comm->busId, (unsigned long long)hashUniqueId(job->commId));
}

Expand Down Expand Up @@ -2156,7 +2156,7 @@ ncclResult_t ncclCommDestroy(ncclComm_t comm) {
NCCLCHECK(ncclCommEnsureReady(comm));

NCCLCHECK(commReclaim(comm));
INFO(NCCL_INIT,"comm %p cudaDev %d busId %lx - Destroy COMPLETE", comm, cudaDev, busId);
INFO(NCCL_INIT,"comm %p rank %d nranks %d cudaDev %d busId %lx - Destroy COMPLETE", comm, rank, nranks, cudaDev, busId);

return ncclSuccess;
}
Expand Down Expand Up @@ -2188,7 +2188,7 @@ ncclResult_t ncclCommAbort(ncclComm_t comm) {
ncclCommEnsureReady(comm);

(void) commReclaim(comm);
INFO(NCCL_INIT,"comm %p cudaDev %d busId %lx - Abort COMPLETE", comm, cudaDev, busId);
INFO(NCCL_INIT,"comm %p rank %d nranks %d cudaDev %d busId %lx - Abort COMPLETE", comm, rank, nranks, cudaDev, busId);

return ncclSuccess;
}
Expand Down

0 comments on commit 088f59f

Please sign in to comment.