triqs.utility.mpi_mpi4py
mpi4py-backed implementation of the TRIQS MPI interface.
This module is selected at runtime by triqs.utility.mpi when an
MPI launcher is detected. It exposes a thin, TRIQS-specific wrapper
around the mpi4py API plus a few utility functions for slicing
arrays per rank and printing only on the master.
A parallel serial stub with the same public surface lives in
triqs.utility.mpi_nompi.
Attributes
- worldmpi4py.MPI.Comm
The default communicator (
MPI.COMM_WORLD).- rankint
Rank of the current process inside
world.- sizeint
Total number of processes in
world.- masterint
Rank of the master process. Always 0.
- All_Nodes_reportbool
When
True,report()writes one file per non-master rank (report_node<rank>) instead of dropping their output. DefaultFalse.- Verbosity_Level_Report_Maxint
Upper bound on the
Verbosity_Levelkeyword accepted byreport(); messages above this threshold are suppressed. Default 1.
Functions
|
Reduce |
|
Synchronisation barrier that yields the CPU while waiting. |
|
Broadcast a Python object from one rank to all ranks. |
Return |
|
Collect the hostnames of every rank on the master. |
|
|
Write |
|
Write |
|
Receive a Python object from another rank. |
|
Print to |
|
Send a Python object to another rank. |
|
Return the local view of |
|
Lower index of the local slice of the integer range |
|
Upper (inclusive) index of the local slice of |