X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a6b23c846948f7f89277f75e7c42f3942b31b8d3..1687df79d61a9418bba830bbd0ab7de16e457090:/src/smpi/colls/allreduce-rab1.c diff --git a/src/smpi/colls/allreduce-rab1.c b/src/smpi/colls/allreduce-rab1.c index 0a04e54b38..173d3e530d 100644 --- a/src/smpi/colls/allreduce-rab1.c +++ b/src/smpi/colls/allreduce-rab1.c @@ -14,13 +14,14 @@ int smpi_coll_tuned_allreduce_rab1(void *sbuff, void *rbuff, { MPI_Status status; MPI_Aint extent; - int tag = COLL_TAG_ALLREDUCE, rank, nprocs, send_size, newcnt, share; - int pof2 = 1, mask, send_idx, recv_idx, dst, send_cnt, recv_cnt; + int tag = COLL_TAG_ALLREDUCE, send_size, newcnt, share; + unsigned int pof2 = 1, mask; + int send_idx, recv_idx, dst, send_cnt, recv_cnt; void *recv, *tmp_buf; - rank = smpi_comm_rank(comm); - nprocs = smpi_comm_size(comm); + unsigned int rank = smpi_comm_rank(comm); + unsigned int nprocs = smpi_comm_size(comm); if((nprocs&(nprocs-1))) THROWF(arg_error,0, "allreduce rab1 algorithm can't be used with non power of two number of processes ! ");