cosmocore.mpi_utils module
MPI utilities for shared memory and array broadcasting.
Bases:
objectMixin providing shared memory array distribution for MPI classes.
Requires
self.commandself.rank._shared_arrayplaces one copy of each array per node in shared memory; intra-node ranks get a zero-copy view, and a single buffer-basedBcastseeds each node’s local rank 0._bcast_arrayis the buffer-based broadcast fallback. Callclose()(or use as a context manager) to release windows and split communicators.Release all MPI shared-memory resources owned by this instance.
- Return type: