X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..ea74f5d95928a521a588737e81f1de94eef25d19:/src/smpi/colls/smpi_mpich_selector.cpp diff --git a/src/smpi/colls/smpi_mpich_selector.cpp b/src/smpi/colls/smpi_mpich_selector.cpp index e877a88155..16f01f0d61 100644 --- a/src/smpi/colls/smpi_mpich_selector.cpp +++ b/src/smpi/colls/smpi_mpich_selector.cpp @@ -1,6 +1,6 @@ /* selector for collective algorithms based on mpich decision logic */ -/* Copyright (c) 2009-2020. The SimGrid Team. +/* Copyright (c) 2009-2022. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -8,6 +8,8 @@ #include "colls_private.hpp" +#include + /* This is the default implementation of allreduce. The algorithm is: Algorithm: MPI_Allreduce @@ -695,7 +697,7 @@ int scatter__mpich(const void *sbuf, int scount, { std::unique_ptr tmp_buf; if(comm->rank()!=root){ - tmp_buf.reset(new unsigned char[rcount * rdtype->get_extent()]); + tmp_buf = std::make_unique(rcount * rdtype->get_extent()); sbuf = tmp_buf.get(); scount = rcount; sdtype = rdtype;