HcclRankGraphGetEndpointNum
产品支持情况
产品 |
是否支持 |
|---|---|
Atlas 350 加速卡 |
√ |
☓ |
|
☓ |
|
☓ |
|
☓ |
|
☓ |
功能说明
获取拓扑实例中的EndPoint数量。
函数原型
1 | HcclResult HcclRankGraphGetEndpointNum(HcclComm comm, uint32_t layer, uint32_t topoInstId, uint32_t *num) |
参数说明
参数名 |
输入/输出 |
描述 |
||
|---|---|---|---|---|
comm |
输入 |
通信域。 HcclComm类型的定义如下:
|
||
layer |
输入 |
拓扑层级编号。 |
||
topoInstId |
输入 |
拓扑实例ID。 |
||
num |
输出 |
返回的EndPoint数量。 |
返回值
HcclResult:接口成功返回HCCL_SUCCESS,其他失败。
约束说明
无
调用示例
1 2 3 4 5 | HcclComm comm; uint32_t layer = 0; uint32_t topoInstId = 0; uint32_t num = 0; HcclRankGraphGetEndpointNum(comm, layer, topoInstId, &num); |
父主题: 拓扑信息查询