mpi::chunk

#include <mpi.hpp>

Synopsis

template<typename T>
auto chunk (T && range, communicator comm = {})

Function to chunk a range, distributing it uniformly over all MPI ranks.

Template parameters

  • T The type of the range

Parameters

  • range The range to chunk
  • comm The mpi communicator