模型运行时出现coredump,报错terminate called after throwing an instance of ‘std::runtime_error’
问题描述
模型运行时出现报错terminate called after throwing an instance of ‘std::runtime_error’
图1 报错截图

问题分析
当前算子异步下发,算子执行报错,抛出异常,主线程coredump。
处理方法
先导入环境变量:
export ASCEND_LAUNCH_BLOCKING=1
再执行模型,模型报错之后即可看到具体调用栈,根据调用栈继续分析问题。
父主题: 其他操作相关问题