WaitIterateAll
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function
Waits for the return of the asynchronous IterateAll API and continuously outputs data to the Global Memory.
Prototype
1 | __aicore__ inline void WaitIterateAll() |
Parameters
None
Returns
None
Restrictions
- This API is used together with the asynchronous IterateAll API.
- Data can only be continuously output to the Global Memory.
Example
For more examples of using this API, see matrix multiplication in IterateAll asynchronous scenarios.
1 2 3 4 5 6 7 8 9 | AscendC::Matmul<aType, bType, cType, biasType> mm; mm.SetTensorA(gm_a[offsetA]); mm.SetTensorB(gm_b[offsetA]); if (tiling.isBias) { mm.SetBias(gm_bias[offsetBias]); } mm.template IterateAll<false>(gm_c[offsetC], 0, false, true); // do some others compute mm.WaitIterateAll(); // Wait for IterateAll to complete. |
Parent topic: Matmul Kernel APIs