Skip to content

Commit

Permalink
REVIEW: fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei-Lebedev committed Nov 1, 2023
1 parent edb836b commit 2e4e471
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/mpi/test_allgather.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ ucc_status_t TestAllgather::set_input(int iter_persistent)
ucc_status_t TestAllgather::check()
{
size_t dt_size, single_rank_count;
int size;
int size, i;

MPI_Comm_size(team.comm, &size);
single_rank_count = args.dst.info.count / size;
dt_size = ucc_dt_size(dt);
for (int i = 0; i < size; i++) {
for (i = 0; i < size; i++) {
init_buffer(PTR_OFFSET(check_buf, i * single_rank_count * dt_size),
single_rank_count, dt, mem_type, i * (iter_persistent + 1));
}
Expand Down
6 changes: 3 additions & 3 deletions test/mpi/test_alltoall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ ucc_status_t TestAlltoall::set_input(int iter_persistent)

ucc_status_t TestAlltoall::check()
{
int size, rank;
size_t single_rank_count;
int size, rank, i;
size_t single_rank_count;

MPI_Comm_rank(team.comm, &rank);
MPI_Comm_size(team.comm, &size);
single_rank_count = args.src.info.count / size;

for (int i = 0; i < size; i++) {
for ( i = 0; i < size; i++) {
init_buffer(PTR_OFFSET(check_buf, i * single_rank_count * ucc_dt_size(dt)),
single_rank_count, dt, mem_type, i * (iter_persistent + 1),
single_rank_count * rank);
Expand Down

0 comments on commit 2e4e471

Please sign in to comment.