split_all#
- caput.util.mpitools.split_all(n: int, comm: mpi4py.MPI.Comm | None = _comm) numpy.ndarray[source]#
Split a range of integers
[0, n)into sub-ranges for each MPI Process.- Parameters:
- Returns:
- split
ndarray Array of shape (3, …) with rows corresponding to:
Number for each rank.
Starting of each sub-range on a given rank.
End of each sub-range.
- split
See also