triqs.utility.mpi_mpi4py.bcast
- triqs.utility.mpi_mpi4py.bcast(x, root=0)[source]
Broadcast a Python object from one rank to all ranks.
Thin wrapper around
mpi4py.MPI.Comm.bcast()onworld.- Parameters:
- xobject
Object to broadcast. Only meaningful on rank
root; ignored on all other ranks.- rootint, optional
Rank that holds the value to broadcast. Default 0.
- Returns:
- object
The broadcast value, identical on every rank.