get_rank_id
功能描述
返回当前进程在MPI通信中的序号。
函数原型
def get_rank_id()
返回值说明
- 成功:返回当前进程在MPI通信中的序号。
- 失败:抛出异常。
使用示例
from mx_rec.util.communication.hccl_ops import get_rank_id rank_id = get_rank_id()
父主题: 其他接口
返回当前进程在MPI通信中的序号。
def get_rank_id()
from mx_rec.util.communication.hccl_ops import get_rank_id rank_id = get_rank_id()