Skip to content

Commit

Permalink
Switch pipeline sync back to synced send
Browse files Browse the repository at this point in the history
  • Loading branch information
AutonomicPerfectionist committed Nov 15, 2023
1 parent 18e4282 commit 4b1c399
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ggml-mpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ void ggml_mpi_sync_pipelined(
MPI_Recv(val, count, datatype, ctx_mpi->rank - 1, tag, ctx_mpi->comm, MPI_STATUS_IGNORE);
}
if(ctx_mpi->rank < ctx_mpi->size - 1) {
MPI_Request req;
MPI_Isend(val, count, datatype, ggml_mpi_next_node(ctx_mpi), tag, ctx_mpi->comm, &(req));
MPI_Request_free(&req);
// MPI_Send(val, count, datatype, ggml_mpi_next_node(ctx_mpi), tag, ctx_mpi->comm);
// MPI_Request req;
// MPI_Isend(val, count, datatype, ggml_mpi_next_node(ctx_mpi), tag, ctx_mpi->comm, &(req));
// MPI_Request_free(&req);
MPI_Send(val, count, datatype, ggml_mpi_next_node(ctx_mpi), tag, ctx_mpi->comm);
}
}

Expand Down

0 comments on commit 4b1c399

Please sign in to comment.