Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Queries the data exchange status between two devices.
1 | aclError aclrtDevicePeerAccessStatus(int32_t deviceId, int32_t peerDeviceId, int32_t *status) |
1 | status, ret = acl.rt.device_peer_access_status(device_id, peer_device_id) |
Parameter |
Description |
|---|---|
device_id |
Int, device ID. |
peer_dev_id |
Int, device ID. Must be in the range of [0, Device count – 1]. Call acl.rt.get_device_count to obtain the device count. |
Return Value |
Description |
|---|---|
status |
Int, device status.
|
ret |
Int, 0 on success; else failure. |
This API can only be used to query the data exchange status of two devices whose IDs are within the value range. If any of the input device IDs is out of the range [0, Number of available devices – 1], the query result is 0 or the error code ACL_ERROR_RT_PARAM_INVALID is returned.