ascendc-custom-op-to-kernel-launch

Transform AscendC custom ops into standalone direct-launch kernels.

11|51|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/hw-native-sys/pypto-lib --skill ascendc-custom-op-to-kernel-launch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ascendc-custom-op-to-kernel-launch
Source: https://github.com/hw-native-sys/pypto-lib/tree/main/.claude/skills/cannbot-skills/ascendc-custom-op-to-kernel-launch
Command: npx skills add https://github.com/hw-native-sys/pypto-lib --skill ascendc-custom-op-to-kernel-launch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Transforms existing AscendC custom operator implementations into a direct-launch kernel form (<<<>>>), enabling self-contained kernels that can be launched without the surrounding op framework.

Core Features & Use Cases

  • Extract kernels/templates from op_kernel or source trees and convert them into standalone, direct-launch form.
  • Localize dependencies and remove cross-directory includes to produce a self-contained kernel package.
  • Preserve kernel semantics while isolating kernel/tiling/host glue for standalone build and launch scenarios.

Quick Start

Isolate the kernel, tiling, and host glue from a custom AscendC op into a self-contained, direct-launch kernel ready for build and launch.

Frequently Asked Questions about ascendc-custom-op-to-kernel-launch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract a standalone kernel from an AscendC custom op project?

To extract a standalone kernel from an AscendC custom op, isolate the kernel, tiling, and host glue from the existing op project. This process localizes dependencies and removes cross-directory includes, producing a self-contained, direct-launch kernel.

What is a direct-launch kernel form in AscendC?

A direct-launch kernel form in AscendC is a self-contained kernel package built to launch independently using the <<<>>> syntax. It removes the surrounding op framework dependencies, allowing the isolated kernel to execute without the original operator infrastructure.

Can I convert a kernel template into a standalone AscendC kernel without the op framework?

Yes, you can convert a kernel template into a standalone AscendC kernel without the op framework. The conversion preserves kernel semantics while transforming the template into an isolated, direct-launch form ready for independent build and launch.

Does converting a custom op to a direct-launch kernel preserve its original tiling semantics?

Converting a custom op to a direct-launch kernel preserves its original tiling and kernel semantics. The transformation strictly isolates the kernel, tiling logic, and host glue while maintaining the computational behavior of the original operator.

Why do I need to localize dependencies and remove cross-directory includes for AscendC kernels?

Localizing dependencies and removing cross-directory includes for AscendC kernels is required to achieve a self-contained build environment. This boundary delineation ensures the extracted direct-launch kernel can be built and launched in complete isolation from the original project tree.

What's the best way to isolate host glue and tiling logic from an existing AscendC op?

The best way to isolate host glue and tiling logic from an existing AscendC op is to extract them into a self-contained package. This provides clear boundary delineation, separating execution logic from the framework to enable isolated direct-launch.