Debugs Ascend C operator runtime errors with error code decoding (161xxx/361xxx/561xxx), Tiling/Kernel lookup failures, and plog log analysis.
Ships in ops-direct-invoke-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
系统化调试 Ascend C 算子运行时错误,包括错误码处理、环境检查。
运行时错误
│
├─ 返回码非0?
│ ├─ 161xxx → 参数错误 → 见高频错误速查
│ ├─ 361xxx → Runtime错误 → 见 debug_workflow.md
│ ├─ 507035 → 向量核异常 → 见 debug_workflow.md#507035-向量核异常
│ └─ 561xxx → 内部错误 → 见高频错误速查 / debug_workflow.md
│
└─ 复杂场景 → 开启日志调试
| 错误码 | 类型 | 排查方向 | 详细方案 |
|---|---|---|---|
| 507035 | 向量核异常 | 检查 UB 端地址 32B 对齐(含 VEC 指令操作数)/ GM→UB padParams 违规 / UB 溢出 | debug_workflow.md |
| 161xxx | 参数错误 | 检查 dtype/shape/nullptr | debug_workflow.md |
| 561002 | Tiling错误 | 检查 TilingKey/TilingFunc | debug_workflow.md |
| 561003 | Kernel未找到 | 检查算子安装/环境配置 | debug_workflow.md |
更多错误码见 error_codes.md
遇到速查表中未列出的错误码时,见 debug_workflow.md
| 工具 | 用途 | 使用 |
|---|---|---|
aclGetRecentErrMsg() | 获取错误详情 | 返回码非0时调用 |
| 环境检查 | ascendc-env-check skill | 见 skill:ascendc-env-check |
parse_plog.py | 日志解析 | python3 scripts/parse_plog.py [plog_file] |
ASCEND_SLOG_PRINT_TO_STDOUT=1 | 日志打屏 | 实时查看日志 |
详细调试方法见 debug_workflow.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ascend-c, operator-debug, error-codes, plog, runtime-diagnostics
24 skills in this plugin
/ascendc-api-best-practicesAscend C API 使用最佳实践。提供算术、归约、数据搬运、Buffer管理、精度转换、通信接口等 API 的正确用法和限制说明。触发:用户询问具体 API 用法(如"DataCopy 怎么用"、"ReadNbi 怎么用")、遇到 API 参数错误或限制报错(如 repeatTimes、对齐问题)、需要查看 API 最佳实践或避坑指南时。/ascendc-blaze-best-practice在 Ascend 950 / DAV_3510 平台上,基于 Blaze/tensor_api 开发 Basic、Batch、Grouped、Quantized、MX 等 MatMul 类算子或相关的融合算子时使用。不适用于纯 Vector 算子或 A2/A3 平台。/ascendc-blaze-migration评估并将 ops-nn、ops-transformer 等仓中 Ascend 950 / DAV_3510 的 AscendC Kernel 分支等价迁移到 ops-tensor Blaze/Tensor API。适用于 CMCT、CGMCT、单体或自定义分层 Kernel,以及 Cube、Vector、MIX、高阶 Matmul、手工 Buffer、数据搬运、自定义调度、VF 和同步路径;在隔离迁移工程中串行完成迁移合同冻结、Blaze 开发、验证资产生成、原始基线、Blaze 验收和双仓本地提交交付。/ascendc-code-reviewAscend C 代码检视技能。触发:检视代码、检视 PR、检查是否有问题、快速检视。支持文件检视、PR 检视、快速定向检视、设计一致性检查。自动识别代码侧别、提取适用条例、执行假设检验驱动的逐条检视。/ascendc-crash-debugAscend C 算子卡死/崩溃/内存错误调试路由技能。用于处理程序无法运行完或执行异常崩溃的场景:(1) 程序卡死/挂起/超时,Kernel 无响应,(2) 程序崩溃(Segmentation Fault、Abort),(3) Buffer 冲突/死锁导致的核心挂起,(4) 需要解析 plog 日志定位卡死/崩溃位置,(5) 偶发崩溃/结果异常(怀疑内存越界踩踏),需要主动检测内存错误。触发关键词:卡死、挂起、超时、崩溃、hang、crash、deadlock、Segmentation Fault、Abort、Kernel hang、内存越界、plog、memcheck、内存检查、内存错误、偶发崩溃、aic error、非法读写。/ascendc-direct-invoke-templateKernel直调工程模板,用于创建 Ascend C Kernel 直调工程项目。提供经过验证的 Vector 样例工程(add_custom)、Blaze Matmul 工程模板(纯 Matmul / 融合 / MX 量化 / GroupMatmul)和 Kirin Vector 模板。触发:当用户需要创建 Kernel 直调工程、学习 Ascend C 编程、快速原型验证、或提及"Kernel直调"、"<<<>>>内核调用"、"Blaze Matmul"、"matmul 模板"时使用本 skill。/ops-direct-invoke-skills:ascendc-runtime-debugfrom ops-direct-invoke-skills
npx claudepluginhub catman626/cannbot-skills --plugin ops-direct-invoke-skills2 plugins ship this exact skill · first indexed Oct 20, 2026
Other plugins' skills for the same job