vayesta.mpi
Submodules
vayesta.mpi.interface
- class vayesta.mpi.interface.NdArrayMetadata(shape, dtype)
Bases:
tuple
- count(value, /)
Return number of occurrences of value.
- dtype
Alias for field number 1
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.
- shape
Alias for field number 0
- class vayesta.mpi.interface.MPI_Interface(mpi, required=False, log=None)[source]
Bases:
object
- property enabled
- property disabled
- property is_master
- nreduce(*args, target=None, logfunc=None, **kwargs)[source]
(All)reduce multiple arguments.
TODO: * Use Allreduce/Reduce for NumPy types * combine multiple *args of same dtype into a single array, to reduce communication overhead.