ResetCtrlSpr(ISASI)

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

x

Atlas A2 training product/Atlas A2 inference product

x

Atlas 200I/500 A2 inference product

x

Atlas inference product AI Core

x

Atlas inference product Vector Core

x

Atlas training product

x

Function Usage

Resets specific bits of the CTRL register (control register).

Prototype

template <int8_t startBit, int8_t endBit>
__aicore__ static inline void ResetCtrlSpr()

Parameters

Table 1 Template parameters

Parameter

Description

startBit

Start bit index.

endBit

End bit index.

Returns

None

Constraints

Only the CTRL[8:6], CTRL[10:9], CTRL[48], CTRL[50], CTRL[53], CTRL[59], and CTRL[60] bits are supported.

Example

In the following example, CTRL[8:6] is reset to disable atomic operations.

AscendC::SetCtrlSpr<6, 8>(1);
...
AscendC::ResetCtrlSpr<6, 8>();