ascendc-operator-performance-optim

Diagnose and optimize Ascend C operator performance across tiling, data movement, and memory layout.

31|1|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/Ascend/agent-skills --skill ascendc-operator-performance-optim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ascendc-operator-performance-optim
Source: https://github.com/Ascend/agent-skills/tree/main/skills/ascendc-operator-performance-optim
Command: npx skills add https://github.com/Ascend/agent-skills --skill ascendc-operator-performance-optim

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnose and optimize Ascend C operator performance to reduce per-op compute time and improve overall throughput across the optimization lifecycle.

Core Features & Use Cases

  • End-to-end optimization workflow from problem discovery through design review, baseline profiling, code changes guided by code-generation knowledge, and validation.
  • Baseline and precision verification with reports that compare custom kernel performance against benchmarks.
  • Use Case: You are optimizing a matrix-multiply operator; the skill guides tiling, memory layout, and vectorization decisions and records results.

Quick Start

Run the optimization workflow on an Ascend C operator project to baseline performance, apply the code-gen guided changes, and validate results with precision and perf reports.

Frequently Asked Questions about ascendc-operator-performance-optim

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

FAQPage Schema
How do I profile and optimize Ascend C operator performance?

Ascend C operator optimization follows an end-to-end workflow spanning baseline profiling, tiling, memory layout, data movement, and synchronization, concluding with iterative code modifications and performance validation reports.

Why does my Ascend C kernel operator have low throughput?

Low Ascend C kernel throughput often stems from suboptimal tiling, inefficient memory layout, or poor synchronization. Diagnose the operator by baseline profiling and applying code-generation guided changes to data movement and vectorization.

What is the best way to approach Ascend C kernel tiling and memory layout optimization?

Ascend C kernel tiling and memory layout optimization requires studying operator design docs and applying code-generation guided references to modify host and kernel code, followed by iterative performance evaluations.

Can I use this workflow to verify operator precision against benchmarks?

Yes, the workflow includes baseline and precision verification steps that compare your custom kernel performance and accuracy against established benchmarks, producing consolidated optimization reports for validation.

Does operator performance tuning require modifying both host and kernel code?

Yes, Ascend C operator tuning requires modifying both host and kernel code. The process uses code-generation references to guide changes across tiling, memory layout, and synchronization to improve compute time.