mpi_array.locale.LndarrayProxy

class mpi_array.locale.LndarrayProxy[source]

Bases: object

Proxy for lndarray instances. Provides peer_rank views of the array for parallelism.

Methods

calculate_intra_partition(intra_locale_size, ...) Splits extent into self.intra_locale_size number of tiles.
fill(value) Fill the array with a scalar value (excludes ghost elements).
fill_h(value) Fill the array with a scalar value (including ghost elements).
free() Release locale array memory and assign None to self attributes.

Attributes

HI The “high index” indices.
LO The “low index” indices.
dtype A numpy.dtype object describing the element type of this array.
halo The number of ghost cells for intra locale partitioning of the extent.
intra_partition A PartitionViewSlices containing slices for this rank (of peer_comm).
intra_partition_dims A sequence of integers indicating the number of partitions along each axis which determines the per-rank views of the locale extent array.
lndarray An lndarray instance containing array data in (potentially) shared memory.
locale_extent A LocaleExtent describing the portion of the array assigned to this locale.
md Meta-data object of type NdarrayMetaData.
rank_view_h A tile view (including halo elements) of the array for this rank of peer_comm.
rank_view_n A tile view of the array for this rank of peer_comm.
rank_view_partition_h Rank tile view from the paritioning of entire self._lndarray (i.e.
rank_view_slice_h Sequence of slice objects used to generate rank_view_h.
rank_view_slice_n Sequence of slice objects used to generate rank_view_n.
shape The shape of the locale array (including halo), i.e.
view_h The entire LndarrayProxy view including halo (i.e.
view_n View of entire array without halo.