caput.mpiutilΒΆ
Utilities for making MPI usage transparent.
This module exposes much of the functionality of mpi4py but will still
run in serial if mpi is not present on the system. It is thus useful for
writing code that can be run in either parallel or serial. Also it exposes all
attributes of the mpi4py.MPI by the SelfWrapper class for
convenience. You can just use:
mpiutil.attr
instead of:
from mpi4py import MPI
MPI.attr