aclrtDeviceDisablePeerAccess
The
Description
Disables memory copy between the current device and a specified device. This API call disables device-level memory copy.
Restrictions
aclrtDeviceDisablePeerAccess can be called to disable memory copy previously enabled by the aclrtDeviceEnablePeerAccess call.
Prototype
aclError aclrtDeviceDisablePeerAccess(int32_t peerDeviceId)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
peerDeviceId |
Input |
Device ID, which must be different from the current device ID. Must be in the range of [0, Device count – 1]. Call aclrtGetDeviceCount to obtain the device count. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Device Management