Overview¶
MindStudio Ops Generator (msOpGen) is an operator development efficiency tool integrated into the MindStudio toolchain. After analyzing an operator and defining its prototype, you can use msOpGen to generate a custom operator project and perform compilation and deployment.
Core Features:
- Operator Project Generation (
msopgen gen): Automatically generates a complete operator project framework (including Host-side and Kernel-side code templates, build scripts, etc.) based on JSON prototype definition files - Simulation Pipeline Visualization (
msopgen sim): Parses dump data from the performance simulation environment and generates operator simulation pipeline visualization files viewable in Chrome tracing
Supporting Tools:
- msOpST (Operator Test Tool): Performs ST (System Test) in real hardware environments to verify operator functionality
- msProf (Profiling Tool) / msSanitizer (Sanitizer Tool) / msDebug (Debug Tool): Deeply integrated with operator projects generated by msOpGen, covering performance tuning, memory detection, and on-board debugging
Use Cases:
- Ascend C custom operator development
- TBE / AI CPU operator project setup
- Multi-framework adaptation (TensorFlow, PyTorch, MindSpore, ONNX)