mpi_array.comms.create_distribution¶
-
mpi_array.comms.create_distribution(shape, distrib_type=None, locale_type='node', **kwargs)[source]¶ Factory function for creating
mpi_array.distribution.Distributionand associatedLocaleComms.Parameters: - shape (sequence of
int) – Shape of the globale array. - distrib_type (
str) – One ofmpi_array.comms.DT_BLOCKormpi_array.comms.DT_SLABormpi_array.comms.DT_CLONEDormpi_array.comms.DT_SINGLE_LOCALE. Defines how the globale array is dstributed over locales. IfNonedefaults tompi_array.comms.DT_BLOCKifnumpy.product(shape) > 0otherwisempi_array.comms.DT_CLONED. - locale_type (
str) – One ofmpi_array.comms.DT_PROCESSormpi_array.comms.DT_NODE. Defines locales. - dims (sequence of
int) – Only relevant whendistrib_type == DT_BLOCK. Defines the partitioning of the globale array axes. - axis (
int) – Only relevant whendistrib_type == DT_SLAB. Indicates the single axis of the globale array partitioned into slabs. - peer_comm (
mpi4py.MPI.Comm) – SeeLocaleComms. - intra_locale_comm (
mpi4py.MPI.Comm) – SeeLocaleComms. - inter_locale_comm (
mpi4py.MPI.Comm) – SeeLocaleComms. - cart_comm (
mpi4py.MPI.Comm) – Only relevant whendistrib_type == DT_BLOCKordistrib_type == DT_SLAB. SeeCartLocaleComms.
Return type: Returns: See also:
- shape (sequence of