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.Distribution
and associatedLocaleComms
.Parameters: - shape (sequence of
int
) – Shape of the globale array. - distrib_type (
str
) – One ofmpi_array.comms.DT_BLOCK
ormpi_array.comms.DT_SLAB
ormpi_array.comms.DT_CLONED
ormpi_array.comms.DT_SINGLE_LOCALE
. Defines how the globale array is dstributed over locales. IfNone
defaults tompi_array.comms.DT_BLOCK
ifnumpy.product(shape) > 0
otherwisempi_array.comms.DT_CLONED
. - locale_type (
str
) – One ofmpi_array.comms.DT_PROCESS
ormpi_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_BLOCK
ordistrib_type == DT_SLAB
. SeeCartLocaleComms
.
Return type: Returns: See also:
- shape (sequence of