WaitIterateAll
Function Description
Waits for the return of the asynchronous IterateAll API and continuously outputs data to the Global Memory.
Prototype
1 | __aicore__ inline void WaitIterateAll() |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
None |
None |
N/A |
Returns
None
Availability
Precautions
- This API is used together with the asynchronous IterateAll API.
- Data can only be continuously output to the Global Memory.
Example
1 2 3 4 5 6 7 8 9 | matmul::Matmul<aType, bType, cType, biasType> mm; mm.SetTensorA(queryGm[tensorACoreOffset]); mm.SetTensorB(keyGm[tensorBCoreOffset + sInnerStart * singleProcessSInnerSize * tilingData->attentionScoreOffestStrideParams.matmulHead], true); mm.SetTail(singleProcessSOuterSize, mmNNum); mm.template IterateAll<false>(workspaceGm[tmp_block_idx * mmResUbSize * sInnerLoopTimes],0,true); // do some others compute mm.WaitIterateAll(); // Wait for IterateAll to complete. DataCopy(dstUB, GM); // Copy data from GM to UB. |
Parent topic: Matmul