What problem does it solve?
This Skill converts complete AscendC or CCE-style device kernels into equivalent PTODSL implementations while preserving their ABI, data movement, synchronization, and observable computation.
Core Features & Use Cases
- VMI Compute Translation: Rewrites vector and SIMT arithmetic, comparisons, conversions, reductions, and rearrangements into logical PTO VMI operations.
- MI Orchestration: Translates memory movement, buffer management, synchronization, control flow, and pipeline coordination into explicit PTODSL micro-instructions.
- Validation Workflow: Checks generated MLIR with kernel compilation and validates VMI lowering through the PTOAS VPTO backend.
- Use Case: Convert an AscendC vector kernel with UB transfers, synchronization flags, tail masks, and datatype conversion into a maintainable PTODSL kernel that can be compiled and inspected through PTOAS.
Quick Start
Use the rewrite-kernel-with-vmi skill to convert the provided AscendC kernel into PTODSL, preserve its interface and synchronization behavior, and validate the generated MLIR with the VPTO backend.