mpi::mpi_broadcast

#include <mpi.hpp>

Synopsis

  1. template<typename T>
    void mpi_broadcast (T & x, communicator c = {}, int root = 0)
  2. template<typename T>
    void mpi_broadcast (std::vector<T> & v, communicator c = {}, int root = 0)
  3. void mpi_broadcast (std::string & s, communicator c, int root)

Documentation

Template parameters

  • T Type to be broadcasted.

Parameters

  • x Object to be broadcasted.

  • c mpi::communicator.

  • root Rank of the root process.

  • v std::vector to broadcast.

  • s std::string to broadcast.