Trap
函数功能
当软件产生异常后,使用该指令使kernel中止运行。
函数原型
1 | __aicore__ inline void Trap() |
参数说明
无
返回值
无
支持的型号
Atlas推理系列产品AI Core
Atlas A2训练系列产品/Atlas 800I A2推理产品
注意事项
该接口在kernel需要调试时使用。
调用示例
1 | AscendC::Trap(); |
父主题: 调测接口
当软件产生异常后,使用该指令使kernel中止运行。
1 | __aicore__ inline void Trap() |
无
无
Atlas推理系列产品AI Core
Atlas A2训练系列产品/Atlas 800I A2推理产品
该接口在kernel需要调试时使用。
1 | AscendC::Trap(); |