X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ecd5f7562caf1d443bf22788fa5f4fac408776ec..ea74f5d95928a521a588737e81f1de94eef25d19:/src/smpi/colls/allgather/allgather-ompi-neighborexchange.cpp diff --git a/src/smpi/colls/allgather/allgather-ompi-neighborexchange.cpp b/src/smpi/colls/allgather/allgather-ompi-neighborexchange.cpp index 08705f94f1..b81517dcc7 100644 --- a/src/smpi/colls/allgather/allgather-ompi-neighborexchange.cpp +++ b/src/smpi/colls/allgather/allgather-ompi-neighborexchange.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2017. The SimGrid Team. +/* Copyright (c) 2013-2022. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -68,7 +68,7 @@ namespace simgrid{ namespace smpi{ int -Coll_allgather_ompi_neighborexchange::allgather(void *sbuf, int scount, +allgather__ompi_neighborexchange(const void *sbuf, int scount, MPI_Datatype sdtype, void* rbuf, int rcount, MPI_Datatype rdtype, @@ -81,18 +81,18 @@ Coll_allgather_ompi_neighborexchange::allgather(void *sbuf, int scount, int i, even_rank; int err = 0; ptrdiff_t slb, rlb, sext, rext; - char *tmpsend = NULL, *tmprecv = NULL; + char *tmpsend = nullptr, *tmprecv = nullptr; size = comm->size(); rank = comm->rank(); if (size % 2) { - XBT_DEBUG( - "coll:tuned:allgather_intra_neighborexchange WARNING: odd size %d, switching to ring algorithm", + XBT_INFO( + "coll:tuned:allgather_intra_neighborexchange: odd size %d, switching to ring algorithm", size); - return Coll_allgather_ring::allgather(sbuf, scount, sdtype, - rbuf, rcount, rdtype, - comm); + return allgather__ring(sbuf, scount, sdtype, + rbuf, rcount, rdtype, + comm); } XBT_DEBUG( @@ -137,7 +137,7 @@ Coll_allgather_ompi_neighborexchange::allgather(void *sbuf, int scount, - Rest of the steps: update recv_data_from according to offset, and exchange two blocks with appropriate neighbor. - the send location becomes previous receve location. + the send location becomes previous receive location. */ tmprecv = (char*)rbuf + neighbor[0] * rcount * rext; tmpsend = (char*)rbuf + rank * rcount * rext;