mpi_array.update.RmaUpdateExecutor¶
-
class
mpi_array.update.RmaUpdateExecutor(inter_win, dst_lndarray, src_inter_win_rank_attr, rank_logger=None, casting='same_kind')[source]¶ Bases:
objectPerforms one-sided fetch of data from remote (source) locale arrays to update destination locale array.
Methods
__init__(inter_win, dst_lndarray, ...[, ...])do_direct_cpy2_update(updates, src_lndarray)Does direct copy update to dst_lndarrayfrom the specifiedsrc_lndarrayarray.do_locale_rma_update(updates)Performs RMA to get elements from remote (source) locales to update the (destination) locale extent array. get_src_win_rank(src_extent)Returns target rank integer ( inter_win) for specifiedsrc_extentextent.Attributes
dst_lndarrayThe destination numpy.ndarrayfor remote fetches.inter_winThe mpi4py.MPI.Wininstance used for remote fetch of data.random_stateA numpy.random.RandomStateinstance, used to permute target rank ordering to alleviate swamping single rank with get requests from multiple source ranks.rank_loggerThe logging.Loggerused for log messages.