HcclRankGraphGetTopoType
产品支持情况
产品 |
是否支持 |
|---|---|
Atlas 350 加速卡 |
√ |
☓ |
|
☓ |
|
☓ |
|
☓ |
|
☓ |
功能说明
给定通信域和拓扑层级编号,查询当前rank在指定拓扑实例中对应的拓扑类型。
函数原型
1 | HcclResult HcclRankGraphGetTopoType(HcclComm comm, uint32_t netLayer, uint32_t topoInstId, CommTopo *topoType) |
参数说明
参数名 |
输入/输出 |
描述 |
||
|---|---|---|---|---|
comm |
输入 |
通信域。 HcclComm类型的定义如下:
|
||
netLayer |
输入 |
拓扑层级编号。 |
||
topoInstId |
输入 |
拓扑实例ID。 |
||
topoType |
输出 |
拓扑类型。 CommTopo类型的定义请参见CommTopo。 |
返回值
HcclResult:接口成功返回HCCL_SUCCESS,其他失败。
约束说明
无
调用示例
1 2 3 | HcclComm comm; CommTopo topoType; HcclRankGraphGetTopoType(comm, netLayer=0, topoInstId=0, &topoType); // topoType=1 (1DMesh) |
父主题: 拓扑信息查询