external-cannbot-ops-ascendc-runtime-debug
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "external-cannbot-ops-ascendc-runtime-debug" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-1b0e2e36e8fade16f8d7ac7834f85c03dad76157b6ebfc91eccf35e0f7905d35. Verify the upstream source and version against https://github.com/ascend-ai-coding/awesome-ascend-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Ascend C operator runtime error debugging skill for handling operator runtime issues, specifically addressing aclnn error codes (161xxx/361xxx/561xxx), including investigation and fault localization related to environment configuration, tiling, and kernels.
Introduction source: third_party · ascend-ai-coding · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: external-cannbot-ops-ascendc-runtime-debug
description: Ascend C 算子运行时错误调试技能。用于处理算子运行时问题:(1) aclnn 返回错误码(161xxx/361xxx/561xxx,包括环境配置、Tiling、Kernel
查找等错误),(2) 需要解析 plog 日志定位问题。触发关键词:运行时错误、错误码、Tiling错误、Kernel查找失败、环境变量、plog。
original-name: ascendc-runtime-debug
synced-from: https://gitcode.com/cann/cannbot-skills
synced-date: '2026-05-26'
synced-commit: ac5bbd2b4cf427d011874e11f8d1e8b1bef66eda
license: UNKNOWNAscend C 算子运行时错误调试
系统化调试 Ascend C 算子运行时错误,包括错误码处理、环境检查。
快速诊断
运行时错误
│
├─ 返回码非0?
│ ├─ 161xxx → 参数错误 → 见高频错误速查
│ ├─ 361xxx → Runtime错误 → 见 debug_workflow.md
│ ├─ 507035 → 向量核异常 → 见 debug_workflow.md#507035-向量核异常
│ └─ 561xxx → 内部错误 → 见高频错误速查 / debug_workflow.md
│
└─ 复杂场景 → 开启日志调试
高频错误速查
| 错误码 | 类型 | 排查方向 | 详细方案 |
|---|---|---|---|
| 507035 | 向量核异常 | 检查 DataCopyPad 32B对齐 / 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
详细资源
- debug_workflow.md:详细调试流程(错误码处理、环境检查)
- kernel_binary_debug.md:Kernel 二进制构建调试(编译缓存、SEL匹配、多版本冲突、opParaSize)
- error_codes.md:完整错误码表(基本状态码、内部异常状态码)
- ascendc-env-check skill:环境变量配置指南
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对昇腾芯片 Ascend C 算子开发中的运行时错误调试,解决开发者具体痛点
- 提供错误码速查、环境检查、日志解析等实用功能,具备工程价值
Highlights
- 触发关键词覆盖全面(运行时错误、错误码、Tiling错误等),边界清晰
Areas to improve
-
缺少 When to Use/示例章节 Reported severity: Minor
文档结构良好,但缺少明确的使用场景说明和端到端完整示例
Recommendation: 补充 When to Use 章节和具体错误调试的完整示例流程
Highlights
- 文档结构清晰,包含快速诊断流程图、高频错误速查表和调试工具指引
Areas to improve
-
引用文件缺失风险 Reported severity: Major
主文档引用了 debug_workflow.md、error_codes.md、kernel_binary_debug.md、parse_plog.py 等文件,但未确认这些文件是否实际存在于 ZIP 包中,可能导致用户无法获取完整调试方案
Recommendation: 确保所有被引用的文件(references/ 目录和 scripts/ 目录)都包含在 Skill ZIP 包中,或提供 fallback 方案
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- gitcode.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.