Disables memory copy between the current device and a specified device. This API is synchronous. This API call disables device-level memory copy.
The Ascend 310 AI Processor does not support this API in the current version.
aclrtDeviceDisablePeerAccess can be called to disable memory copy previously enabled by the aclrtDeviceEnablePeerAccess call.
For the Ascend 310P AI Processor, when your app runs on device-side Ctrl CPU in open Ctrl CPU form, this API does not support memory copy between devices.
aclError aclrtDeviceDisablePeerAccess(int32_t peerDeviceId)
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. |
0 on success; else, failure.
For the API call example, see Inter-Device Data Transfer.