Description: Synchronizes all devices in a communication domain. xRef is used only to build tensor dependencies. No operation is performed on xRef in the API.
- Compared with the
[object Object]API, this API has the following changes:- Added the
[object Object]parameter. - Added the
[object Object]parameter.
- Added the
Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] is called to perform computation.
[object Object]
[object Object]
Parameters
[object Object]- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object]: For these products,
[object Object]and[object Object]only takes null pointers.
- [object Object]Atlas A2 training products/Atlas A2 inference products[object Object]: For these products,
Returns
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
Deterministic computing:
[object Object]defaults to a deterministic implementation.
Constraints on the use of the communication domain:
[object Object]in a model requires an independent communication domain, and no other operators are allowed in the communication domain.
Application scenarios:
- Calling this operator in a network model that requires all-device synchronization can mask performance fluctuations caused by fast and slow devices, assisting in performance analysis.
- This operator can be called continuously. When building a graph, the input of the previous operator and the output of the next operator should be passed as input parameters to the API.
Parameter consistency constraint:
- When
[object Object]is enabled, ensure that[object Object]and[object Object]or[object Object]also enable this parameter, and their values remain consistent with the corresponding[object Object]parameter.
- When