X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/271068c7d949ed959313b055466e13539485bc2c..8dd3206354d72d10fed1f3df1cf834573d9c0d9d:/src/smpi/colls/allgatherv/allgatherv-ompi-neighborexchange.cpp diff --git a/src/smpi/colls/allgatherv/allgatherv-ompi-neighborexchange.cpp b/src/smpi/colls/allgatherv/allgatherv-ompi-neighborexchange.cpp index d026ec572d..dd8b7f7b7b 100644 --- a/src/smpi/colls/allgatherv/allgatherv-ompi-neighborexchange.cpp +++ b/src/smpi/colls/allgatherv/allgatherv-ompi-neighborexchange.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2019. The SimGrid Team. +/* Copyright (c) 2013-2021. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -82,14 +82,13 @@ allgatherv__ompi_neighborexchange(const 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("allgatherv__ompi_neighborexchange WARNING: odd size %d, switching to ring algorithm", + XBT_INFO("allgatherv__ompi_neighborexchange: odd size %d, switching to ring algorithm", size); return allgatherv__ring(sbuf, scount, sdtype, rbuf, rcounts, @@ -141,7 +140,7 @@ allgatherv__ompi_neighborexchange(const 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. Note, we need to create indexed datatype to send and receive these blocks properly. */ @@ -214,7 +213,7 @@ allgatherv__ompi_neighborexchange(const void *sbuf, int scount, return MPI_SUCCESS; err_hndl: - XBT_DEBUG( "%s:%4d\tError occurred %d, rank %2d", + XBT_WARN( "%s:%4d\tError occurred %d, rank %2d", __FILE__, line, err, rank); return err; }