52 #ifndef HAVOQGT_MPI_DETAIL_ITERATOR_HPP_INCLUDED
53 #define HAVOQGT_MPI_DETAIL_ITERATOR_HPP_INCLUDED
57 namespace havoqgt {
namespace mpi {
namespace detail {
66 template <
typename Iterator>
68 uint32_t my_unfinished = itr != itr_end;
70 std::plus<uint32_t>(),
72 return ranks_unfinished == 0;
77 #endif //HAVOQGT_MPI_DETAIL_ITERATOR_HPP_INCLUDED
bool global_iterator_range_empty(Iterator itr, Iterator itr_end, MPI_Comm comm)
T mpi_all_reduce(T in_d, Op in_op, MPI_Comm mpi_comm)