What problem does it solve?
This Skill diagnoses and resolves MX and cube matmul failures caused by shape mismatches, fractal layout errors, wrapper lowering defects, scale packing issues, FP4 byte staging, writeback bugs, or simulator behavior.
Core Features & Use Cases
- Layered Debugging: Separates logical shapes, physical layouts, MTE transfers, wrapper expansion, emitter control packing, cube computation, and output writeback.
- Targeted Isolation: Uses all-ones checks, patterned data, independent data and scale tests, and simulator middle-layer logs to localize failures.
- Framework-Aware Analysis: Compares handwritten VPTO cases with TileLang and PTODSL authoring IR, expanded operations, and final hardware controls.
- Use Case: Apply this Skill when an A5 FP8 or FP4 matmul case produces incorrect output, especially when logical and physical K dimensions differ or padded packed-byte buffers are involved.
Quick Start
Use the debug-matmul-mx skill to investigate the failing MX matmul case, synchronize its kernel, host, and golden shapes, and identify the first incorrect execution layer.