int my_row_base, my_col_base, src_row_base, block_size;
int tag = COLL_TAG_ALLTOALL;
- rank = smpi_comm_rank(comm);
- num_procs = smpi_comm_size(comm);
+ rank = comm->rank();
+ num_procs = comm->size();
extent = smpi_datatype_get_extent(send_type);
if (!alltoall_check_is_2dmesh(num_procs, &X, &Y))