aclrtGetDevicesTopo
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Note: This API cannot be called for the
Function
Obtains the network topology between two devices.
Prototype
1 | aclError aclrtGetDevicesTopo(uint32_t deviceId, uint32_t otherDeviceId, uint64_t *value) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
deviceId |
Input |
Device ID. The value must be in the range of [0, (Available device count – 1)]. Call aclrtGetDeviceCount to obtain the device count. |
otherDeviceId |
Input |
Device ID. The value must be in the range of [0, (Available device count – 1)]. Call aclrtGetDeviceCount to obtain the device count. |
value |
Output |
Topology between two devices.
The macros are defined as follows: #define ACL_RT_DEVS_TOPOLOGY_HCCS 0x01ULL #define ACL_RT_DEVS_TOPOLOGY_PIX 0x02ULL #define ACL_RT_DEVS_TOPOLOGY_PHB 0x08ULL #define ACL_RT_DEVS_TOPOLOGY_SYS 0x10ULL #define ACL_RT_DEVS_TOPOLOGY_SIO 0x20ULL #define ACL_RT_DEVS_TOPOLOGY_HCCS_SW 0x40ULL #define ACL_RT_DEVS_TOPOLOGY_PIB 0x04ULL |
Returns
0 on success; otherwise, failure. For details, see aclError.