huawei-cloud-ascendc-operator-performance-optim
БесплатноБез исполняемых скриптовНе проверенDevelop and optimize custom operators using AscendC programming language. Analyze operator performance bottlenecks and conduct optimization validation. Based…
от huaweicloudskill364 установки в других каталогахОб этом скилле
Huawei Cloud AscendC Operator Performance Optimization
Overview
This skill provides guidance for developing and optimizing custom operators using AscendC programming language.
Architecture: Performance Analysis → Bottleneck Identification → Operator Development → Optimization → Validation
Related Skills:
huawei-cloud-ascend-profiler-db-explorer- Performance data analysis and bottleneck identificationhuawei-cloud-ascend-small-model-migrate- Migration workflow that may require operator optimization
Architecture Components
This skill involves the following cloud services and components:
- AscendC: Programming language for custom operator development
- CANN: Huawei Cloud AI Computing Platform for NPU
- Ascend 910B: Target NPU hardware for operator deployment
- Ascend Profiler: Performance analysis tool for validation
Architecture Diagram:
┌─────────────────────────────────────────────────────────────┐
│ AscendC Operator Optimization Skill │
├─────────────────────────────────────────────────────────────┤
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Performance │───▶│ Bottleneck │───▶│ Operator │ │
│ │ Analysis │ │ Identification│ │ Development │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Profiling │ │ Optimization│ │ Validation │ │
│ │ Data │ │ Techniques │ │ & Testing │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
└─────────────────────────────────────────────────────────────┘
Use Cases
Typical Problem Scenarios:
- Optimizing performance-critical operators on Ascend NPU
- Developing custom operators for specific workloads
- Improving model inference performance through operator optimization
- Fixing operator bottlenecks identified during profiling
- Implementing missing operators for NPU deployment
Typical User Phrases:
- "Optimize my custom operator for Ascend"
- "Develop AscendC operator for GEMM"
- "Improve inference performance on NPU"
- "Fix bottleneck operator"
- "Implement custom operator using AscendC"
- "AscendCOperator"
- "OptimizationAscendOperatorPerformance"
- "OperatorPerformance"
Scope
Supported:
- Custom operator development in AscendC
- Performance optimization for existing operators
- Operator validation and testing
Not supported:
- Non-AscendC operator development
- Framework-level optimizations
Core Workflow
1. Performance Analysis
- Use profiling tools to identify performance bottlenecks
- Analyze operator execution time and resource utilization
2. Bottleneck Identification
- Identify operators with high execution time
- Determine optimization opportunities
3. Operator Development
- Implement custom operators using AscendC
- Follow AscendC best practices
4. Optimization Techniques
- Memory optimization
- Compute optimization
- Data layout optimization
5. Validation
- Verify functional correctness
- Validate performance improvement
Reference Documents
| Document | Description |
|---|---|
| Acceptance Criteria | Functional acceptance criteria |
| Verification Method | Verification approach |
| Troubleshooting | Common issues and solutions |
Prerequisites
- CANN >= 7.0.0 installed
- AscendC >= 1.0.0 installed
- Ascend NPU driver installed and working properly
- Operator code or performance data to be optimized
Core Commands
# Analyze operator performance bottlenecks
msprof --output=/path/to/output ./my_operator
# Optimize operator using AscendC
# Refer to CANN development guide for operator development
Parameter Confirmation
| Parameter | Description | Required |
|---|---|---|
| Operator code path | Operator source code to be optimized | Yes |
| Output directory | Performance analysis result output path | Yes |
| Optimization strategy | Performance optimization scheme selection | No |
Output Format
Performance analysis results are saved in the specified output directory:
output/
├── summary.json # Performance summary
├── operator_stats.csv # Operator execution statistics
├── timeline.json # Execution timeline data
└── recommendations.md # Optimization recommendations
Summary JSON Structure:
{
"total_time_ms": 1234.56,
"operator_count": 42,
"top_operators": [
{"name": "CustomGEMM", "time_ms": 456.78, "percentage": 37.0},
{"name": "VectorAdd", "time_ms": 123.45, "percentage": 10.0}
],
"optimization_candidates": ["CustomGEMM", "DataTransfer"]
}
Validation Method
Functional Validation
- Run operat
Установить huawei-cloud-ascendc-operator-performance-optim в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
python3bashascendcFAQ
Что делает скилл huawei-cloud-ascendc-operator-performance-optim?
Develop and optimize custom operators using AscendC programming language. Analyze operator performance bottlenecks and conduct optimization validation. Based on AscendC and CANN toolkit Use this skill when the user wants to: (1) optimize performance-critical operators on Ascend NPU, (2) develop custom operators for specific workloads, (3) improve model inference performance through operator optimization Trigger: user mentions "AscendC", "operator optimization", "custom operator", "performance", "NPU optimization", "Ascend operator", "算子优化", "自定义算子", "算子开发", "AscendC算子", "性能优化"
Как установить скилл huawei-cloud-ascendc-operator-performance-optim?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-ascendc-operator-performance-optim запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic