X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/67a025ec7d8a8248222a4b6bbe9cbdfe4ed4439c..89d7a404bbe64b7f19e6743d2979468f1cac42a2:/src/smpi/colls/smpi_default_selector.cpp diff --git a/src/smpi/colls/smpi_default_selector.cpp b/src/smpi/colls/smpi_default_selector.cpp index d5f5aac804..d3419b2039 100644 --- a/src/smpi/colls/smpi_default_selector.cpp +++ b/src/smpi/colls/smpi_default_selector.cpp @@ -1,6 +1,6 @@ -/* selector with default/naive Simgrid algorithms. These should not be trusted for performance evaluations */ +/* selector with default/naive SimGrid algorithms. These should not be trusted for performance evaluations */ -/* Copyright (c) 2009-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -8,8 +8,7 @@ #include "colls_private.hpp" #include "src/smpi/include/smpi_actor.hpp" -namespace simgrid{ -namespace smpi{ +namespace simgrid::smpi { int bcast__default(void *buf, int count, MPI_Datatype datatype, int root, MPI_Comm comm) { @@ -78,7 +77,7 @@ int allgatherv__default(const void *sendbuf, int sendcount, MPI_Datatype sendtyp MPI_Request request; colls::iallgatherv(sendbuf, sendcount, sendtype, recvbuf, recvcounts, displs, recvtype, comm, &request, 0); auto requests = request->get_nbc_requests(); - Request::waitall(requests.size(), &requests[0], MPI_STATUS_IGNORE); + Request::waitall(requests.size(), requests.data(), MPI_STATUS_IGNORE); for(auto& req: requests) Request::unref(&req); Request::unref(&request); @@ -131,6 +130,4 @@ int alltoallv__default(const void *sendbuf, const int *sendcounts, const int *se return Request::wait(&request, MPI_STATUS_IGNORE); } -} -} - +} // namespace simgrid::smpi