返回MPI通信器中的总进程数。
1
def get_rank_size()
1 2
from mx_rec.util.communication.hccl_ops import get_rank_size rank_size = get_rank_size()