madupite.mpi_rank_size#

madupite.mpi_rank_size(*, comm: int = 0) tuple[int, int]#

Return the rank and size of the global MPI communicator.

This function retrieves the rank (the unique identifier of the current process) and the size (the total number of processes) within the global MPI communicator.

Returns#

pair<int, int>

A pair where the first element is the rank of the current process, and the second element is the total number of processes.