Commit 0d59efa
committed
fix(compiler): default cluster_dims=(1,1,1) for backends that omit it
hcu and mthreads backends do not support cluster launch, so their
compiled kernel metadata omits cluster_dims. The KernelMetadata
namedtuple is then built without that key, and torch 2.9.0's
make_launcher reads kernel.metadata.cluster_dims unconditionally,
raising AttributeError during KV-cache profiling warmup.
Default the key to (1,1,1) before building the namedtuple, matching
what the vendor triton 3.5.1 compiler and the iluvatar overlay already
use — instead of patching torch/inductor per backend in each vendor
adapter.1 parent 52678a8 commit 0d59efa
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
438 | 442 | | |
439 | 443 | | |
440 | 444 | | |
| |||
0 commit comments