Skip to content

Commit

Permalink
Added an MPI_Barrier() call after MPI_Bcast() for HCOLL issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AddyLaddy committed Oct 12, 2023
1 parent 6c46206 commit 1292b25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common.cu
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,7 @@ testResult_t run() {
}
#ifdef MPI_SUPPORT
MPI_Bcast(&ncclId, sizeof(ncclId), MPI_BYTE, 0, mpi_comm);
MPI_Barrier(MPI_COMM_WORLD); // Ensure Bcast is complete for HCOLL
#endif
int gpus[nGpus*nThreads];
cudaStream_t streams[nGpus*nThreads];
Expand Down

0 comments on commit 1292b25

Please sign in to comment.