external-gitcode-ascend-ascendc-operator-code-gen

Installation
SKILL.md

AscendC 算子代码生成与框架适配

根据设计文档生成 op_host + op_kernel 代码,注册到 PyTorch 框架,调用 ascendc-operator-compile-debug skill 完成编译安装和精度测试。

前置条件: 设计文档 ascend-kernel/csrc/ops/<op_name>/design.md 已就绪,目录结构已创建。

工作流程总览

读取设计文档 → 加载 reference → 选择模板 → 生成 op_host + op_kernel
    → 框架适配 (ops.h + register.cpp + csrc/CMakeLists.txt)
    → 调用 ascendc-operator-compile-debug skill (编译 + 安装 + 测试)

阶段 1: 加载参考文档

MANDATORY — READ BEFORE CODING: 读取 references/GUIDE.md,根据设计文档中的算子类型,加载对应的 reference 文件。绝对不要跳过此步骤。

Installs
8
GitHub Stars
143
First Seen
Apr 18, 2026
external-gitcode-ascend-ascendc-operator-code-gen — ascend-ai-coding/awesome-ascend-skills