X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fgraph%2Fdistributed%2Fdetail%2Fmpi_process_group.ipp;h=94050da9c29f18b3b5626df719e263cf01fde4a6;hb=92f5a8d42d07f9929ae4fa7e01342fe8d96808a8;hp=c157387be93e83dd61281c8dca8ff00ad26ab509;hpb=a0324939f9d0e1905d5df8f57442f09dc70af83d;p=ceph.git diff --git a/ceph/src/boost/boost/graph/distributed/detail/mpi_process_group.ipp b/ceph/src/boost/boost/graph/distributed/detail/mpi_process_group.ipp index c157387be..94050da9c 100644 --- a/ceph/src/boost/boost/graph/distributed/detail/mpi_process_group.ipp +++ b/ceph/src/boost/boost/graph/distributed/detail/mpi_process_group.ipp @@ -839,10 +839,19 @@ all_gather(const mpi_process_group& pg, InputIterator first, &sizes[0], 1, MPI_INT, communicator(pg)); BOOST_ASSERT(result == MPI_SUCCESS); + (void)result; // Adjust sizes based on the number of bytes - std::transform(sizes.begin(), sizes.end(), sizes.begin(), - std::bind2nd(std::multiplies(), sizeof(T))); + // + // std::transform(sizes.begin(), sizes.end(), sizes.begin(), + // std::bind2nd(std::multiplies(), sizeof(T))); + // + // std::bind2nd has been removed from C++17 + + for( std::size_t i = 0, n = sizes.size(); i < n; ++i ) + { + sizes[ i ] *= sizeof( T ); + } // Compute displacements std::vector displacements; @@ -880,6 +889,7 @@ process_subgroup(const mpi_process_group& pg, MPI_Group current_group; int result = MPI_Comm_group(communicator(pg), ¤t_group); BOOST_ASSERT(result == MPI_SUCCESS); + (void)result; MPI_Group new_group; result = MPI_Group_incl(current_group, ranks.size(), &ranks[0], &new_group);