What problem does it solve?
This Skill helps PyTorch developers understand, debug, extend, and optimize the TorchInductor compiler backend behind torch.compile, reducing the complexity of FX lowering, scheduling, fusion, code generation, and performance tuning.
Core Features & Use Cases
- Compiler Architecture Guidance: Explain the decomposition-to-lowering pipeline, Inductor IR, scheduling, memory planning, and backend code generation.
- Operator and Kernel Development: Guide custom decompositions, lowerings, Triton templates, FX passes, layout constraints, and custom backend integrations.
- Debugging and Optimization: Investigate compilation failures, inspect generated kernels, analyze fusion and memory behavior, configure autotuning, and improve CPU or GPU performance.
- Use Case: When a new operator fails under torch.compile or produces inefficient kernels, use this Skill to determine whether it needs a decomposition or lowering, implement the appropriate integration, inspect generated code, and create validation tests.
Quick Start
Use the PyTorch Inductor skill to diagnose this compilation failure, identify the relevant lowering or code generation path, and recommend a tested fix.