triqs.utility.mpi
Runtime-dispatched MPI facade for TRIQS.
On import, check_for_mpi() inspects a handful of environment
variables set by common MPI launchers. If any of them is present, this
module re-exports everything from triqs.utility.mpi_mpi4py
(real mpi4py-backed implementation). Otherwise it falls back to
triqs.utility.mpi_nompi (a serial stub with the same public
interface).
User code should therefore import triqs.utility.mpi directly and
never one of the two backends; this guarantees the same source runs
both inside mpirun -n N and as a plain serial Python invocation.
Functions
Detect whether the current process was launched under MPI. |