You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
without needing any core compiler changes or rebuilding Triton.
201
201
202
-
## Example 3: Fully customizing the compiler pipeline with pass and op insertions at abitrary locations
202
+
## Example 3: Inserting a new pass into the compiler pipeline at an arbitary point.
203
+
204
+
Example 2 added a new pass to the end of the ttgir "stage". However the plugin pass's location is arbitary and can be dynamically inserted anywhere in the pipeline. Replacing the inspect_stages_hook function from example 2 instead with:
directs the new pass's placement based on other surrounding passes. Knowing which passes are in the pipeline a priori can challenging, therefore in the next example we show how to dump and inspect the entire pipeline that is run for a particlar kernel to allow for precise placement of specialized out of tree passes even if the upstream pass pipeline structure changes.
227
+
228
+
## Example 4: Fully customizing the compiler pipeline with pass and op insertions at abitrary locations
203
229
204
230
Here we now run two kernels one with the full standard Triton pipeline and one with fully customized pipeline entirely from within
205
231
kernel code with modifying any core Triton compiler code or recompiling. We run the kernel with a hook to output the standard pipeline, modify
0 commit comments