返回当前进程在MPI通信中的序号。
1
def get_rank_id()
1 2
from mx_rec.util.communication.hccl_ops import get_rank_id rank_id = get_rank_id()