WaitGetTensorC

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product AI Core

x

Atlas inference product Vector Core

x

Atlas training product

x

Function Usage

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
}