get_rank_id
Function
Returns the ranking ID of the current process in the MPI communicator.
Prototype
1 | def get_rank_id() |
Return Value
- Success: Returns the ranking ID of the current process in the MPI communicator.
- Failure: An exception is thrown.
Example
1 2 | from rec_sdk_common.communication.hccl.hccl_info import get_rank_id rank_id = get_rank_id() |
Parent topic: Other APIs