Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
x |
Disables memory copy between the current device and a specified device. This API disables device-level memory copy.
aclError aclrtDeviceDisablePeerAccess(int32_t peerDeviceId)
1 | ret = acl.rt.device_disable_peer_access(peer_dev_id) |
Parameter |
Description |
|---|---|
peer_dev_id |
Int, device ID, which must be different from the current 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 |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |