mpi_array.update.MpiPairExtentUpdate¶
-
class
mpi_array.update.MpiPairExtentUpdate(dst_extent, src_extent, dst_update_extent, src_update_extent)[source]¶ Bases:
mpi_array.update.ExtentUpdateSource and destination indexing info for updating the whole of a halo portion. Extends
ExtentUpdatewith API to creatempi4py.MPI.Datatypeinstances (usingmpi4py.MPI.Datatype.Create_subarray()) for convenient transfer of sub-array data.Methods
__init__(dst_extent, src_extent, ...)conclude()copyto(dst_array, src_array, casting)Copies the src_update_extentregion fromsrc_arraydo_get(mpi_win, target_src_rank, ...)Performs calls mpi4py.MPI.Win.Get()method ofmpi_winto perform the RMA data-transfer.do_rget(mpi_win, target_src_rank, ...)Performs calls mpi4py.MPI.Win.Rget()method ofmpi_winto perform the RMA data-transfer.initialise_data_types(dst_dtype, src_dtype, ...)Assigns new instances of mpi4py.MPI.Datatype for the dst_data_typeandsrc_data_typeattributes.Attributes
castingA strindicating the casting allowed between differentnumpy.dtypeelements.dst_data_typeA mpi4py.MPI.Datatypeobject created usingmpi4py.MPI.Datatype.Create_subarray()which defines the sub-array of halo elements which are to receive update values.dst_dtypeA numpy.dtypeobject indicating the element type of the destination array.dst_extentThe locale LocaleExtentwhich is to receive sub-array update.dst_update_extentThe locale sub-extent ( IndexingExtent) to be updated.src_data_typeA mpi4py.MPI.Datatypeobject created usingmpi4py.MPI.Datatype.Create_subarray()which defines the sub-array of halo elements from which receive update values.src_dtypeA numpy.dtypeobject indicating the element type of the source array.src_extentThe locale CartLocaleExtentfrom which the sub-array update is read.src_update_extentThe locale sub-extent ( IndexingExtent) from which the update is read.