WaitGetTensorC
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
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 } |
Parent topic: Matmul Kernel APIs