ascendc-operator-compile-debug

Installation
SKILL.md

name: ascendc-operator-compile-debug description: 编译安装 AscendC 算子并执行精度测试。TRIGGER when: 算子代码生成完成后需要编译验证、安装 whl 包、运行精度测试,或编译/测试失败需要排查。关键词:build.sh、编译、安装、whl、pytest、精度测试、编译错误、NPU 测试。

AscendC 算子编译安装与精度测试

编译 ascend-kernel 工程、安装 whl 包、生成并运行精度测试。通常由 ascendc-operator-code-gen skill 在代码生成完成后调用。

前置条件

  • op_host、op_kernel 代码已生成
  • ops.h、register.cpp、csrc/CMakeLists.txt 已更新(框架适配完成)
  • CANN 环境可用

工作流程

阶段 0: 环境准备

MANDATORY — 每次 shell 命令前必须加载环境。禁止硬编码路径,禁止自行搜索路径。

Installs
7
GitHub Stars
30
First Seen
Jun 1, 2026
ascendc-operator-compile-debug — ascend/agent-skills