Commit 0951602
[inductor][heuristics] Update total tiling score when it is zero (#176423)
- When the total score is zero, it should be updated otherwise there will be a division by zero error
- Trying to create a repro proved difficult. Example state that produces this is:
```python
size_hints = {"y": 4096, "x": 64, "r0_": 128}
inductor_meta = {
"tiling_scores": {"y": 134217728, "x": 2097152, "r0_": 0},
"num_load": 1,
}
triton_meta = {
"signature": {
"in_ptr0": "*fp32",
"out_ptr0": "*fp32",
"ynumel": "i32",
"xnumel": "i32",
"r0_numel": "i32",
"YBLOCK": "constexpr",
"XBLOCK": "constexpr",
"R0_BLOCK": "constexpr",
}
}
persistent_reduction=False
```
Pull Request resolved: #176423
Approved by: https://github.com/jansel1 parent eee7a9d commit 0951602
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3389 | 3389 | | |
3390 | 3390 | | |
3391 | 3391 | | |
| 3392 | + | |
3392 | 3393 | | |
3393 | 3394 | | |
3394 | 3395 | | |
| |||
0 commit comments