Files
Yuanyuan Chen 3255e7872b Enable all flake8-logging-format rules (#164655)
These rules are enabled by removing existing suppressions.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164655
Approved by: https://github.com/janeyx99, https://github.com/mlazos
2025-10-19 00:59:28 +00:00
..

torch._inductor.runtime

This folder contains code needed at runtime by the output code of Inductor. The output code of Inductor will import torch and torch._inductor.runtime, but should not import from other files in torch._inductor.*. Note that this code includes code that is needed to actually perform Triton compilation, but is not needed in the actual, final runtime execution of kernels.

Runtime includes Triton/C++ generated code, which are compiled (sometimes in parallel) when the output code of Inductor is imported. It also includes the autotuning code and heuristics to decide block sizes of generated code.

One of the original motivations for this directory split was so that the Triton compile subprocesses could access Triton and our compiler support code while mocking out most of torch, which can take seconds to import (sometimes more than a Triton compile itself). An abandoned prototype of this can be found here.