SetMaskCount
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
x |
Function
Sets mask to counter mode. In this mode, you do not need to perceive the number of repeats or process unaligned tail blocks. You can directly pass in the amount of data to be computed. The actual number of repeats is automatically inferred by the Vector Unit.
Prototype
1 | __aicore__ inline void SetMaskCount() |
Parameters
None
Returns
None
Restrictions
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