HcclRankGraphGetEndpointNum
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
x |
|
x |
|
x |
|
x |
|
x |
Function
Obtains the number of endpoints in a topology instance.
Prototype
1 | HcclResult HcclRankGraphGetEndpointNum(HcclComm comm, uint32_t layer, uint32_t topoInstId, uint32_t *num) |
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
comm |
Input |
Communicator. The HcclComm type is defined as follows:
|
||
layer |
Input |
Topology layer ID. |
||
topoInstId |
Input |
Topology instance ID. |
||
num |
Output |
Number of returned endpoints. |
Returns
HcclResult: HCCL_SUCCESS on success, or else failure.
Restrictions
None
Example
1 2 3 4 5 | HcclComm comm; uint32_t layer = 0; uint32_t topoInstId = 0; uint32_t num = 0; HcclRankGraphGetEndpointNum(comm, layer, topoInstId, &num); |
Parent topic: Topology Information Query