← Back to events
ActiveAIRelease

trunk/29343e76e2342c777bb257a270bae1d805996700: Support non-builtin constexpr objects in user Triton kernels (#189692)

Photo: PyTorch Releases

What happened

Fix Inductor codegen for user-defined Triton kernels that pass non-builtin Python objects as tl.constexpr values. When such constants are serialized with constructor-style repr output, for example UserDefinedTritonKernelConfig(offset=2) , generated kernel source and launcher code need the corresponding class in scope. This change imports the constant class into generated kernel source and makes it available in the g…

Summary assembled by rule from the sources below

Why it's spreading

Sources