aclrtGetDevicesTopo
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Note: This API cannot be called for the
Description
Obtains the network topology of the interconnection 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. Must be in the range of [0, Device count – 1]. Call aclrtGetDeviceCount to obtain the device count. |
otherDeviceId |
Input |
Device ID. Must be in the range of [0, Device count – 1]. Call aclrtGetDeviceCount to obtain the device count. |
value |
Output |
Topology of the interconnection 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.