aclrtDeviceDisablePeerAccess
Applicability
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
☓ |
|
|
√ |
|
|
√ |
Description
Disables data exchange between the current device and a specified device. This API disables device-level data exchange.
aclrtDeviceDisablePeerAccess can be called to disable data exchange 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
0 on success; else, failure. For details, see aclError.