SetMaskCount

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product AI Core

Atlas inference product Vector Core

x

Atlas training product

x

Function Usage

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.

Examples

For details, see Calling examples (counter mode).