msprof-op-simulator-insight

Profile PTOAS-generated kernels and export simulator data for MindStudio Insight.

30|74|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/hw-native-sys/PTOAS --skill msprof-op-simulator-insight
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: msprof-op-simulator-insight
Source: https://github.com/hw-native-sys/PTOAS/tree/main/.codex/skills/msprof-op-simulator-insight
Command: npx skills add https://github.com/hw-native-sys/PTOAS --skill msprof-op-simulator-insight

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill coordinates the difficult workflow of building a host runner, profiling PTOAS-generated kernels with the Ascend operation simulator, and exporting usable MindStudio Insight files.

Core Features & Use Cases

  • Host Runner Builds: Configures and builds an executable that launches the target kernel and references generated source.
  • Symbol Resolution: Locates the kernel shared library and resolves the exact mangled symbol required by simulator collection.
  • Simulator Collection and Export: Runs A3 dav_2201 profiling, handles dump paths and missing program-counter metadata, and exports trace and visualization files for MindStudio Insight.
  • Use Case: Profile a generated PTO kernel from WSL, diagnose collection or export failures, and produce trace.json and visualize_data.bin for performance analysis.

Quick Start

Use the msprof-op-simulator-insight skill to build and profile the target PTOAS kernel, then export the resulting simulator data for MindStudio Insight.

Frequently Asked Questions about msprof-op-simulator-insight

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

FAQPage Schema
How do I profile PTOAS-generated kernels and export traces for MindStudio Insight?

Profiling PTOAS-generated kernels for MindStudio Insight requires using the msprof op simulator to collect execution data, resolving exact mangled kernel symbols, and exporting trace.json files. This workflow specifically supports WSL-based Ascend A3 dav_2201 development environments.

What is kernel symbol resolution and why is it needed for Ascend op simulator collection?

Kernel symbol resolution locates the compiled kernel shared library and identifies the exact mangled symbol required by the simulator. Without correct symbol resolution, the Ascend msprof op simulator cannot target the PTOAS-generated kernel for profiling.

Does the msprof op simulator work with WSL for Ascend A3 kernel profiling?

Yes, the msprof op simulator supports WSL-based Ascend A3 dav_2201 workflows for kernel profiling. It requires a configured Ascend CANN environment, a built application and kernel library, and properly located simulator dump metadata to successfully collect and export trace data.

How do I build a host runner for PTOAS kernel profiling on Ascend?

Building a host runner for PTOAS kernel profiling involves configuring and compiling an executable that launches the target kernel and references the generated source. This executable is necessary to execute the kernel within the Ascend operation simulator environment for data collection.

Why does my Ascend simulator trace export fail with missing program-counter metadata?

Trace export fails with missing program-counter metadata when simulator dump paths are incorrectly configured or metadata files are misplaced. Troubleshooting involves verifying dump path configurations and ensuring the simulator collection output is accessible before exporting to MindStudio Insight.

What's the best way to analyze PTO kernel performance using MindStudio Insight?

Analyzing PTO kernel performance with MindStudio Insight is best achieved by profiling the kernel with the Ascend op simulator and exporting the collected data into trace.json and visualize_data.bin files. These exported files can then be loaded directly into MindStudio Insight for visualization.