Commit f73e9a4
[triton][beta] [Cherry-pick] '[BACKEND] Add hook for configurable/overridable compiler pass pipeline (#8137)' (#1014)
Summary:
Pull Request resolved: #1014
This is a cherry-pick of an upstream PR: triton-lang/triton#8137
Upstream commit message:
```
> [BACKEND] Add hook for configurable/overridable compiler pass pipeline (#8137)
> Triton’s existing pass pipelines are explicitly defined in the various
> extended compiler.py files that live in Triton’s backends. Currently
> when we require insertion of passes either for instrumentation or for
> the addition of downstream optimization and custom lowering it is
> required for the compiler.py file itself to be modified.
> In order to allow for more downstream configurability and as a first
> step toward more custom MLIR level pass plugins, we add a hook into the
> compiler stages to allow for a more configurable pass manager system
> setup.
> Using Python inspection routines coupled with the hook allows for more
> fine grained control of things like enabling/disabling passes for
> specific kernels with eventually being able to load and insert
> completely out of tree ops/passes in arbitrary places in the stages
> pipeline.
> Co-authored with plotfi
> ---------
> Co-authored-by: Puyan Lotfi <puyan@puyan.org>
```
***Do not remove the following line from this commit***
Reactor Cherry-pick Revision: 905b3d1
---
This diff was generated by running:
```
buck run fbcode//triton/tools/reactor:reactor -- cherrypick --num-commits 1
```
Reviewed By: dshi7
Differential Revision: D94678547
fbshipit-source-id: a2af93c1274f56130c21b2b91621b7fea37631211 parent 345c368 commit f73e9a4
File tree
5 files changed
+75
-0
lines changed- python
- test/backend
- triton
- third_party
- amd/backend
- nvidia/backend
5 files changed
+75
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
136 | 145 | | |
137 | 146 | | |
138 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
458 | 464 | | |
459 | 465 | | |
460 | 466 | | |
| |||
475 | 481 | | |
476 | 482 | | |
477 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
478 | 487 | | |
479 | 488 | | |
480 | 489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
| 505 | + | |
504 | 506 | | |
505 | 507 | | |
506 | 508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| 620 | + | |
| 621 | + | |
620 | 622 | | |
621 | 623 | | |
622 | 624 | | |
| |||
0 commit comments