-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NFC][GPU] Move LLVMGPUPipelineOptions to iree_gpu dialect (#18458)
This moves `LLVMGPUPipelineOptions` to `Codegen/Dialect/GPU` so that pipeline options can be set by iree_gpu lowering configuration logic (like `setMatmulLoweringConfig` in `ConfigUtils.cpp`). A new attribute `GPUPipelineOptionsAttr` is added, with optional parameters defined for each existing pipeline option. The assembly of the pipline attributes has changed, since the options are now part of the `iree_gpu` dialect. For the purposes of setting user configurations with transform dialect this PR changes the following: All pipeline option attributes should now be contained in a single `#iree_gpu.pipeline_options<>` - `reorder_workgroups = "none"/"swizzle"/"transpose"` becomes one of the pipeline options `reorder_workgroups_strategy = None/Swizzle/Transpose` - `prefetch_shared_memory` becomes the pipeline option `prefetch_shared_memory = true/false` - `no_reduce_shared_memory_bank_conflicts` becomes the pipeline option `no_reduce_shared_memory_bank_conflicts = true/false` Example: After this change, the translation_info config dict changes from ``` {reorder_workgroups = "swizzle", prefetch_shared_memory} ``` to ``` {gpu_pipeline_options = #iree_gpu.pipeline_options< prefetch_shared_memory = true, reorder_workgroups_strategy = Swizzle >} ``` --------- Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
- Loading branch information
Showing
14 changed files
with
256 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.