aclrtDeviceDisablePeerAccess

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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.

See Also

For the API call example, see Data Transfer Between Devices.