Trap

Supported Products

Product

Supported/Unsupported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference product's AI Core

Atlas inference product's Vector Core

x

Atlas training products

x

Functions

Interrupts the running of the AI Core in NPU mode, and functions similarly to assert in CPU mode when called on the kernel. It can be used to debug abnormal scenarios on the kernel side.

Prototype

1
__aicore__ inline void Trap()

Parameters

None

Return Value Description

None

Restrictions

None

Examples

1
AscendC::Trap();