SetMaskCount
Function Usage
Sets mask to counter mode. In this mode, you do not need to perceive the number of iterations or process unaligned tail blocks. You can directly pass in the amount of data to be computed. The actual number of iterations is automatically inferred by the Vector Unit. mask can be set to counter mode or normal mode. For details about the concepts and application scenarios of the two modes, see Mask Operations. Specifically, for details about how to set and use the counter mode, see How Do I Manually Set the Counter Mode?.
Prototype
1
|
__aicore__ inline void SetMaskCount() |
Parameters
None
Returns
None
Availability
Constraints
In counter mode, you need to call SetMaskNorm to restore the mask mode to the normal mode after the vector computation is complete.
Example
For details, see Calling examples (counter mode).
Parent topic: Mask Operations