X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d53d00d608a60a6f05e77ea7b7cd5c4e544d7ab1..8e43c615b2475d0174be55f95f930ca30988279e:/src/smpi/colls/allgather-smp-simple.cpp diff --git a/src/smpi/colls/allgather-smp-simple.cpp b/src/smpi/colls/allgather-smp-simple.cpp index e54c75b5b9..1db7bc2ff7 100644 --- a/src/smpi/colls/allgather-smp-simple.cpp +++ b/src/smpi/colls/allgather-smp-simple.cpp @@ -12,20 +12,20 @@ int smpi_coll_tuned_allgather_smp_simple(void *send_buf, int scount, MPI_Comm comm) { int src, dst, comm_size, rank; - comm_size = smpi_comm_size(comm); + comm_size = comm->size(); - if(smpi_comm_get_leaders_comm(comm)==MPI_COMM_NULL){ - smpi_comm_init_smp(comm); + if(comm->get_leaders_comm()==MPI_COMM_NULL){ + comm->init_smp(); } int num_core=1; - if (smpi_comm_is_uniform(comm)){ - num_core = smpi_comm_size(smpi_comm_get_intra_comm(comm)); + if (comm->is_uniform()){ + num_core = comm->get_intra_comm()->size(); } if(comm_size%num_core) THROWF(arg_error,0, "allgather SMP simple algorithm can't be used with non multiple of NUM_CORE=%d number of processes ! ", num_core); - rank = smpi_comm_rank(comm); + rank = comm->rank(); MPI_Aint rextent, sextent; rextent = smpi_datatype_get_extent(rtype); sextent = smpi_datatype_get_extent(stype);