HcclRankGraphGetTopoType
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
x |
|
x |
|
x |
|
x |
|
x |
Function
Queries the topology type of the current rank in the specified topology instance based on the given communicator and topology layer ID.
Prototype
1 | HcclResult HcclRankGraphGetTopoType(HcclComm comm, uint32_t netLayer, uint32_t topoInstId, CommTopo *topoType) |
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
comm |
Input |
Communicator. The HcclComm type is defined as follows:
|
||
netLayer |
Input |
Topology layer ID. |
||
topoInstId |
Input |
Topology instance ID. |
||
topoType |
Output |
Topology type: For the definition of the CommTopo type, see CommTopo. |
Returns
HcclResult: HCCL_SUCCESS on success, or else failure.
Restrictions
None
Example
1 2 3 | HcclComm comm; CommTopo topoType; HcclRankGraphGetTopoType(comm, netLayer=0, topoInstId=0, &topoType); // topoType=1 (1DMesh) |
Parent topic: Topology Information Query