HcclRankGraphGetLayers
产品支持情况
|
产品 |
是否支持 |
|---|---|
|
|
√ |
|
|
√ |
|
|
☓ |
|
|
☓ |
|
|
☓ |
针对
函数原型
1
|
HcclResult HcclRankGraphGetLayers(HcclComm comm, uint32_t **netLayers, uint32_t *netLayerNum) |
参数说明
|
参数名 |
输入/输出 |
描述 |
||
|---|---|---|---|---|
|
comm |
输入 |
当前rank所在的通信域。 HcclComm类型的定义如下:
|
||
|
netLayers |
输出 |
拓扑层级编号列表。 |
||
|
netLayerNum |
输出 |
拓扑层级编号数量。 |
返回值
HcclResult:接口成功返回HCCL_SUCCESS,其他失败。
约束说明
无
调用示例
以功能说明的拓扑模型为例:
1 2 3 4 5 |
HcclComm comm; uint32_t *netLayers; uint32_t layerNum; HcclRankGraphGetLayers(comm, &netLayers, &layerNum); // netLayers=[0,1], layerNum=2 |
父主题: 拓扑信息查询
