Skip to content

caching_comm

CachingCommData dataclass

Data required to restore a CachingCommReader.

Usually you will not want to initialize this class directly, but instead use the CachingCommReader.load method.

CachingCommReader

Bases: Comm[T]

mpi4py Comm-like object which replays stored communications.

__init__(data)

Initialize a CachingCommReader.

Usually you will not want to initialize this class directly, but instead use the CachingCommReader.load method.

Parameters:

Name Type Description Default
data CachingCommData

contains all data needed for mocked communication

required

CachingCommWriter

Bases: Comm[T]

Wrapper around a mpi4py Comm object which can be serialized and then loaded as a CachingCommReader.

__init__(comm)

Parameters:

Name Type Description Default
comm Comm[T]

underlying mpi4py comm-like object

required