ResetCtrlSpr(ISASI)
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
x |
|
x |
|
x |
|
x |
|
x |
|
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
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>();
Parent topic: TPosition