get_rank_size
Function
Returns the total number of processes in the MPI communicator.
Prototype
1 | def get_rank_size() |
Return Value
- Success: Returns the total number of processes in the MPI communicator.
- Failure: An exception is thrown.
Example
1 2 | from rec_sdk_common.communication.hccl.hccl_info import get_rank_size rank_size = get_rank_size() |
Parent topic: Other APIs