mpi_array.globale.PerAxisRmaHaloUpdater¶
-
class
mpi_array.globale.PerAxisRmaHaloUpdater(locale_extents, dtype, order, inter_locale_win, dst_buffer)[source]¶ Bases:
mpi_array.globale.CommLoggerHelper class for performing halo data transfer using RMA via MPI windows (
mpi4py.MPI.Winobjects).Methods
__init__(locale_extents, dtype, order, ...)Initialise. calc_halo_updates()Calculates the per-axis halo-region updates for all inter-locale ranks (of the inter_locale_comm).do_update_halos(halo_updates)Performs the data exchange required to update the halo (ghost) elements of the array buffer dst_buffer.buffer.update_halos()Performs the data exchange required to update the halo (ghost) elements of the array buffer dst_buffer.buffer.Attributes
HIHalo “high index” indices. LOHalo “low index” indices. dst_bufferA memoryviewwhich provides the buffer into which the halo data is written.dtypeThe numpy.dtypeof the data to be exchanged in the halo update.halo_updatesThe (rank_2_updates_dict, bool_sequence)pair calculated bycalc_halo_updates().locale_extentsSequence of mpi_array.distribution.LocaleExtentobjects which define the partitioning of the array.orderArray order str,'C'for C memory layout.rank_loggerroot_logger