What problem does it solve? Porting the torch_fl NVIDIA backend to a new PyTorch version normally means hand-writing and fixing dozens of CUDA kernels, and import torch_fl crashes with opaque "Mismatch in kernel C++ signatures" errors when dispatcher signatures drift between torch versions. This Skill replaces hand-written kernels with torchgen-based code generation and provides a tested procedure for adapting the CUDA-boxing backend to any torch branch. ## Core Features & Use Cases - Schema-driven operator generation: Runs scripts/codegen/codegen_ops.py against native_functions.yaml to emit all boxing kernels, dispatcher glue, and registration code into csrc/aten/generated/. - External libtorch_cuda.so scheme: Keeps the pip environment on CPU-only torch while resolving CUDA symbols at runtime via LD_PRELOAD, so the backend builds with g++ only and no nvcc. - Version-adaptation troubleshooting: Documents the per-operator IListRef/ArrayRef signature split, factory-op recursion fixes, LD_PRELOAD timing constraints, and test-marker pitfalls. - Use Case: When bumping torch_fl from torch 2.12 to 2.13, follow the documented loop — generate, build with FlagGems off, smoke-test through the wrapper script, and iterate on signature mismatches until import is clean. ## Quick Start Ask the AI to adapt the torch_fl CUDA backend to a new PyTorch version by running the codegen script, rebuilding, and fixing any kernel signature mismatches until import succeeds.