AscendC Operator Design

•
99
•

Architects high-performance custom operators and tiling strategies for Huawei Ascend NPU development.

The AscendC Operator Design skill is a specialized tool for developers building custom kernels on Huawei Ascend NPUs. It guides the creation of comprehensive design documents (design.md) by analyzing operator requirements, defining interfaces aligned with PyTorch/NumPy, and planning complex tiling strategies. The skill helps map mathematical formulas to specific AscendC API sequences while ensuring hardware-specific constraints like 32-byte memory alignment and precision upcasting (FP16/BF16 to FP32) are addressed, providing a robust blueprint for subsequent code generation.

주요 기능

0199 GitHub stars
02Interface alignment with industry-standard deep learning frameworks
03Mapping of mathematical operations to optimized AscendC API sequences
04Two-level tiling strategy planning for Block and Unified Buffer levels
05Hardware-aware memory alignment and workspace size calculation
06Structured generation of comprehensive operator design documentation

사용 사례

01Designing custom high-performance kernels for Huawei Ascend hardware
02Creating hardware-optimized design blueprints before generating C++ kernel code
03Planning memory-efficient tiling for elementwise, reduction, or sorting operators