mpi_array.globale_ufunc.GndarrayArrayUfuncExecutor¶
-
class
mpi_array.globale_ufunc.GndarrayArrayUfuncExecutor(array_like_obj, ufunc, method, *inputs, **kwargs)[source]¶ Bases:
objectInstances execute a ufunc for a
mpi_array.globale.gndarray. Takes care of creating outputs, remote fetching of required parts of inputs and forwarding call tonumpy.ufuncinstance to perform the computation on the localenumpy.ndarrayinstances.Methods
__init__(array_like_obj, ufunc, method, ...)Initialise. GndarrayArrayUfuncExecutor.check_equivalent_inter_locale_commscreate_outputs(outputs, result_shape, ...)Returns list of output mpi_array.globale.gndarrayinstances.execute()Perform the ufunc operation. execute___call__()execute_accumulate()Not implemented. execute_at()Not implemented. execute_outer()Not implemented. execute_reduce()Not implemented. execute_reduceat()Not implemented. get_best_match_input(result_shape)Returns the element of inputswhose globale shape best matchesresult_shape.get_input_extents(locale_info)Returns tuple of (locale_extent, globale_extent)pairs, one for each of theinputs.get_inputs_shapes()Returns a shape tuplefor each element ofinputs.get_numpy_ufunc_peer_rank_inputs_outputs(...)Returns two element tuple of (input_arrays, output_arrays)which are to be passed to thenumpy.ufuncobjectufunc.need_remote_data(gndarray_outputs)Returns Trueif any locale needs to fetch remote input data in order to compute the all elements of the outputsgndarray_outputs.Attributes
array_like_objThe mpi_array.globale.gndarrayobject which triggered the construction of thisGndarrayArrayUfuncExecutorobject.castingA strindicating the casting mode.inputsThe sequence of ufunc inputs. inter_locale_commThe inter-locale mpi4py.MPI.Commcommunicator.intra_locale_commThe intra-locale mpi4py.MPI.Commcommunicator.methodA strindicating the method of theufuncto be executed.outputsThe ufunc mpi_array.globale.gndarrayoutput arrays.peer_commThe peer mpi4py.MPI.Commcommunicator.ufuncThe numpy.ufuncto be executed.