WaitGetTensorC

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

x

Atlas inference product's AI Core

x

Atlas inference product's Vector Core

x

Atlas training products

x

Function

When the GetTensorC asynchronous API is used to copy the result matrix from GM to UB and UB needs to perform vector computation later, WaitGetTensorC needs to be called for synchronization.

Prototype

1
__aicore__ inline void WaitGetTensorC()

Parameters

None

Returns

None

Restrictions

This API is not supported when enableMixDualMaster (dual-master mode) is set to true.

Example

1
2
3
4
5
6
7
8
// Asynchronous mode
mm.template Iterate<false>();
// Other operations
for (int i = 0; i < singleCoreM/baseM * singleCoreN/baseN; ++i) {   
    mm.template GetTensorC<false>(ubCmatrix); 
    mm.WaitGetTensorC();
    // Vector operations
}