huawei-cloud-msot-msopprof-operator-profiler
/huawei-cloud-msot-msopprof-operator-profiler
Collect operator-level performance data on Ascend NPU using msopprof tool. Supports both device mode and simulator mode, generates performance analysis reports. Use this skill when the user wants to: (1) profile operator performance on Ascend NPU, (2) collect performance data for analysis, (3) identify performance bottlenecks through operator execution characteristics. Trigger: user mentions "msopprof", "profiler", "performance profiling", "operator profiling", "Ascend", "NPU", "profile data", "性能采集", "算子性能", "性能剖析", "算子耗时采集
- Author
- huaweicloud ↗
- Repository
- huaweicloud-skills ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 7
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Collect operator-level performance data on Ascend NPU using msopprof tool. Supports both device mode and simulator mode, generates performance analysis reports. Use this skill when the user wants to: (1) profile operator performance on Ascend NPU, (2) collect performance data for analysis, (3) identify performance bottlenecks through operator execution characteristics. Trigger: user mentions "msopprof", "profiler", "performance profiling", "operator profiling", "Ascend", "NPU", "profile data", "性能采集", "算子性能", "性能剖析", "算子耗时采集
Triggers from the description
Original author description
Collect operator-level performance data on Ascend NPU using msopprof tool. Supports both device mode and simulator mode, generates performance analysis reports. Use this skill when the user wants to: (1) profile operator performance on Ascend NPU, (2) collect performance data for analysis, (3) identify performance bottlenecks through operator execution characteristics. Trigger: user mentions "msopprof", "profiler", "performance profiling", "operator profiling", "Ascend", "NPU", "profile data", "性能采集", "算子性能", "性能剖析", "算子耗时采集
How it works
- Overview
- Architecture Components
- Use Cases
- Scope
- Core Workflow
- Enhanced Features
- Reference Documents
- Prerequisites
- Core Commands
- Parameter Confirmation
SKILL.md preview
--- name: huawei-cloud-msot-msopprof-operator-profiler description: | Collect operator-level performance data on Ascend NPU using msopprof tool. Supports both device mode and simulator mode, generates performance analysis reports. Use this skill when the user wants to: (1) profile operator performance on Ascend NPU, (2) collect performance data for analysis, (3) identify performance bottlenecks through operator execution characteristics. Trigger: user mentions "msopprof", "profiler", "performance profiling", "operator profiling", "Ascend", "NPU", "profile data", "性能采集", "算子性能", "性能剖析", "算子耗时采集" compatibility: - msopprof >= 1.0.0 - CANN >= 7.0.0 tags: [Ascend, msopprof, profiler, operator] allowed-tools: - python3 - msopprof - bash --- # Huawei Cloud msOT msopprof Operator Profiler ## Overview This skill provides operator-level performance profiling capabilities for Ascend NPU. **Architecture**: Profiling Configuration → Data Collection → Report Generation → Analysis **Related Skills**: - `huawei-cloud-ascend-profiler-db-explorer` - Profiling database analysis and query - `huawei-cloud-ascend-small-model-migrate` - Migration workflow that uses performance data ## Architecture Components This skill involves the following cloud services and components: - **msopprof**: Huawei Cloud operator profiling tool for Ascend NPU - **CANN**: AI Computing Platform for NPU runtime support - **Ascend NPU**: Target hardware for performance profiling - **Profiling Database**: Storage for collected performance data **Architecture Diagram:** ```text ┌─────────────────────────────────────────────────────────────┐ │ msOT msopprof Operator Profiler Skill │ ├─────────────────────────────────────────────────────────────┤ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ │ │ Profiling │───▶│ Data │───▶│ Report │ │ │ │ Config │ │ Collection │ │ Generation │ │ │ └──────────────┘ └──────────────┘ └──────────────┘ │ │ │ │ │ │ │ ▼ ▼ ▼ │ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ │ │ Mode │ │ Operator │ │ Data │ │ │ │ Selection │ │ Execution │ │ Export │ │ │ │ (Device/Sim)│ │ Monitoring │ │ │ │ │ └──────────────┘ └──────────────┘ └──────────────┘ │ └─────────────────────────────────────────────────────────────┘ ``` ## Use Cases **Typical Problem Scenarios:** - Collecting operator-level performance data on Ascend NPU - Profiling model inference performance - Identifying performance bottlenecks through operator execution - Comparing operator performance between device and simulator modes - Generating performance analysis reports for model optimization **Typical User Phrases:** - "Profile operator performance on Ascend NPU" - "Collect performance data using msopprof" - "Generate performance analysis report" - "Compare device vs simulator profiling" - "Identify performance bottlenecks" - "AscendCollectionOperatorPerformanceData" - "msopprofPerformance" - "PerformanceAnalysisReport" ## Scope **Supported**: - Operator performance data collection - Device mode profiling - Simulator mode profiling - Report generation **Not supported**: - System-level profiling - Non-Ascend platforms ## Core Workflow ### 1. Profiling Configuration - Set up profiling parameters - Configure collection mode (device/simulator) ### 2. Data Collection - Execute profiling on target model - Collect operator performance data ### 3. Report Generation - Generate profiling reports - Output performance metrics ### 4. Data Export - Export data to profiling database - Prepare for further analysis ## Enhanced Features ### Best Practices Knowledge Base This skill integrates a searchable knowledge base containing migration success stories and optimization patterns: **Features:** - **Case Study Repository**: Searchable database of migration success stories for common model architectures - **Operator Optimization Recipes**: Proven optimization patterns with code snippets for common operators - **Similarity Matching**: Recommends proven solutions based on model architecture similarity - **Performance Patterns**: Collection of known performance patterns and anti-patterns - **Expert Recommendations**: Curated tips from Ascend optimization experts **Knowledge Base Structure:** - **Case Studies**: YOLO, ResNet, UNet migration success stories - **Operator Recipes**: Conv2D, MatMul, Attention optimization patterns - **Performance Patterns**: Common bottleneck patterns and solutions - **Expert Tips**: Optimization best practices from field experts ### YOLOv8 Migration Success Story #### Model Information - Model: YOLOv8s - Input: 640x640 - Target: Ascend 910B #### Challenges Encountered 1. **Issue**: NMS operator fallback to CPU - **Solution**: Implemented AscendC NMS operator - **Gain**: 30% latency reduction 2. **Issue**: Memory bandwidth bottleneck - **Solution**: Optimized data layout and batch processing - **Gain**: 15% throughput improvement 3. **Issue**: Custom activation function - **Solution**: Replaced with supported operators - **Gain**: Stable NPU execution #### Final Results - **Latency**: 8.2 ms → 5.1 ms (-37.8%) - **Throughput**: 122 FPS → 196 FPS (+60.7%) - **Accuracy**: 60.2% → 60.4% (+0.2%) #### Key Takeaways - Always check operator coverage before migration - Implement custom operators for critical path - Optimize memory access patterns ### Operator Optimization Recipes - **Conv2D**: Padding overhead → Use native NPU padding (5-10% gain) - **MatMul**: Memory layout → Optimal tiling config (10-15% gain) - **Attention**: FlashAttention → Enable NPU FlashAttention (20-30% gain) - **NMS**: CPU fallback → AscendC implementation (25-35% gain) ## Reference Documents - [Acceptance Criteria](references/acceptance-criteria.md) - Functional acceptance criteria - [Verification Method](references/verification-method.md) - Verification approach - [Troubleshooting](references/troubleshooting.md) - Common issues and solutions ## Prerequisites - msopprof >= 1.0.0 installed - CANN >= 7.0.0 installed - Ascend NPU driver installed - Operator code to be analyzed ## Core Commands ```bash # Collect operator performance data msopprof --output=/path/to/output \ --mode=device \ ./my_operator # Analyze performance report python3 scripts/analyze_profile.py --data /path/to/output ``` ## Parameter Confirmation - **output**: Performance data output path (Required) - **mode**: Collection mode (device/simulator) (Optional) - **operator**: Operator executable file path (Required)
Files in this package (7)
- SKILL.md 8 KB
- demo/simulator-needs-sim-build.md 3 KB
- references/acceptance-criteria.md 3 KB
- references/device-tuning-guide.md 6 KB
- references/simulator-tuning-guide.md 5 KB
- references/troubleshooting.md 4 KB
- references/verification-method.md 3 KB
Versions
The database has no other skills named huawei-cloud-msot-msopprof-operator-profiler.
Database snapshot: 13.11.2026 · package version f6c5c74a45a4 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100minicpm5-deploy-vllm-ascend
Deploy MiniCPM5-2B with vLLM on Huawei Ascend NPU using vLLM-Ascend. Use when the user mentions vLLM-Ascend, Ascend NPU, Huawei Ascend, CANN, torch_npu, davinci devices, or wants an OpenAI-compatible MiniCPM5 server on Ascend hardware. - 100huawei-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… - 100huawei-cloud-ascend-profiler-db-explorer
Convert natural language questions into safe executable SQL to query Ascend PyTorch Profiler / msprof database for operator time consumption, communication, dispatch, and other performance data. Supports table schema extraction from official documentation. Use this skill when… - 100npu-arch
Ascend NPU 架构知识查询技能。通过芯片型号映射、架构代际划分和 archXX 特性说明,帮助判断目标平台能力、特性支持与条件编译策略。当需要确认芯片型号、NpuArch/SocVersion、架构差异、特性支持或编译分支条件时使用。 - 100clarus-adapt
Adapt the clarus inference engine (Rust scheduler + embedded Python model worker + Triton kernels) to a new checkpoint, a new restoration model, a new op kernel, or a new device / framework (e.g. Ascend NPU via torch_npu, ROCm, CPU). Use when the user wants to serve or evaluate… - 88dev-loop-performance-profiler
Use when the user asks about performance profiling, application performance, profiling tools, performance optimization, bottleneck analysis, or performance testing. Do NOT use for: debugging bugs (dev-loop-debugging-strategy), or code review (dev-loop-code-review).