Trap
Function Usage
Stops the kernel when a software exception occurs.
Prototype
1 | __aicore__ inline void Trap() |
Parameters
None
Returns
None
Availability
Precautions
This API is used when the kernel needs to be debugged.
Example
1 | AscendC::Trap(); |
Parent topic: Operator Debugging APIs