AscendC Operator Performance Evaluator
Automates NPU performance profiling for custom AscendC operators using standardized benchmarks and detailed Markdown reporting.
This skill streamlines the performance evaluation of Huawei Ascend NPU operators by automating the collection of metrics via torch_npu.profiler. It enforces a rigorous workflow that includes reading design documentation, generating representative test cases from JSONL specifications, and producing standardized comparison reports between custom operators and reference implementations. With fixed profiling schedules (5 warmup and 5 active steps) and mandatory dual-path analysis, it ensures consistent, high-fidelity performance data for developers optimizing kernels on Ascend hardware.
주요 기능
01Automated torch_npu.profiler integration with fixed 5-step warmup and active cycles
02Smart test case generation synchronized with design.md and test-case.md documents
03Standardized Markdown reporting with DType-specific analysis and speedup ratios
0499 GitHub stars
05Mandatory dual-path comparison (Custom vs. Benchmark) for all performance reports
06Fallback support for 'small operator splicing' benchmarks when official APIs are unavailable
사용 사례
01Identifying performance bottlenecks across different data types and input scales
02Benchmarking custom NPU kernels against standard PyTorch/torch_npu operators
03Validating performance improvements after kernel optimization or tiling strategy updates