What problem does it solve?
This Skill helps diagnose PyTorch Inductor compilation and performance problems by tracing transformations from ATen operations through lowering, scheduling, fusion, loop-body construction, Triton code generation, and execution.
Core Features & Use Cases
- Pipeline Tracing: Follow Inductor operations across IR lowering, scheduling, loop-body creation, Triton code generation, compilation, and execution.
- Fusion Analysis: Investigate scheduler dependencies, fusion opportunities, missed fusions, intermediate buffers, and kernel launch behavior.
- IR and Kernel Debugging: Interpret Pointwise, Reduction, SchedulerNode, FusedSchedulerNode, ops.load, ops.store, and generated Triton code.
- Use Case: When a compiled PyTorch model launches too many kernels or produces incorrect output, use the Skill to identify the relevant Inductor stage, enable targeted logs, and compare transformations across IR levels.
Quick Start
Use the compile-trace-inductor skill to investigate why a torch.compile workload is not fusing expected operations and identify the relevant Inductor logs and IR output.