-
Notifications
You must be signed in to change notification settings - Fork 15
Change matmul / kernel_bench tests to reuse CPU pipeline #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d69978d
Change matmul / kernel_bench tests to reuse CPU pipeline
rengolin 03627b0
only use optimized pipeline for x86_64
rengolin c96d2cb
allow for imprecision between unoptimized/optimized pipelines
rengolin e786447
Refactor arguments back to original, no more dictionary nonsense
rengolin 57a75fb
comments
rengolin 08ee284
address all comments
rengolin eadcc2b
unnecessary parameter in matmyl.py
rengolin 24e64e8
docstrings
rengolin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # This is the default pipeline for kernel_bench, producing serial code. | ||
| # For optimized builds, pass the --pipeline to the kernel_bench program. | ||
| Pipeline: | ||
| ## Packing & Cache tiling (CPU generic) | ||
| - schedule: "packing.py[gen=block_pack_matmuls]{block_factors=32,32,32 rhs_transpose_outer_block=True rhs_transpose_inner_block=False}" | ||
| - schedule: "x86/pack_lowering.py[gen=lower_packs_unpacks]{tile_size=32}" | ||
| - pass: "linalg-morph-ops{named-to-category generic-to-category}" | ||
| - schedule: "x86/cache_tiling.py[gen=matmul_cache_tiling]{target=linalg.contract fuse_producers}" | ||
| - schedule: "linalg.py[gen=linalg_contract_fold_unit_dims]" | ||
|
|
||
| ## CPU specific register tiling (depends on uArch & data type) | ||
| - schedule: "x86/register_tiling.py[gen=matmul_register_tiling]{target=linalg.contract}" | ||
| - schedule: "x86/register_tiling.py[gen=matmul_register_unroll]{target=linalg.contract}" | ||
| - schedule: "tiling.py[gen=tile_ops]{target_op=linalg.fill tile_sizes=[1,1,1]}" | ||
|
rengolin marked this conversation as resolved.
|
||
| - schedule: "tiling.py[gen=tile_ops]{target_op=linalg.generic tile_sizes=[1,8]}" | ||
|
|
||
| ## Tensor vectorization (for the left-over element wise) | ||
| - schedule: "vectorization.py[gen=vectorize_linalg]" | ||
| - schedule: "vectorization.py[gen=simplify_vector_ops]" | ||
| - include: cleanup.yaml | ||
| - schedule: "vectorization.py[gen=x86_vectorization]" | ||
|
|
||
| ## Bufferization | ||
| - include: bufferization.yaml | ||
| - include: bufferization_cleanup.yaml | ||
|
|
||
| ## Buffer vectorization (gets rid of all the rest) | ||
| - schedule: "vectorization.py[gen=x86_vectorization]" | ||
| - schedule: "vectorization.py[gen=vectorize_all]" | ||
| - schedule: "vectorization.py[gen=flatten_vector_ops]" | ||
|
|
||
| ## Lower to LLVM | ||
| - include: llvm_lowering.yaml | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.