Repository navigation
A pipeline for multi level tiling and vectorization of linalg ops on tensors - #7038
Conversation
ba84e74 to
d4c9bc0
Compare
d4c9bc0 to
d966140
Compare
MaheshRavishankar
left a comment
There was a problem hiding this comment.
THanks! Just a few nits!
| "LLVMCPUPlanConvLoopOrder.cpp", | ||
| "LLVMCPUSynchronizeSymbolVisibility.cpp", | ||
| "LLVMCPUTilePadAndVectorize.cpp", | ||
| "LLVMCPUTileAndVectorize.cpp", |
There was a problem hiding this comment.
Since we are changing the name here, mind disambiguating this with what is LLVMCPUVectorization?
| namespace mlir { | ||
| namespace iree_compiler { | ||
|
|
||
| static llvm::cl::opt<bool> clUseTensorPadTileAndVectorize( |
There was a problem hiding this comment.
Bonus points for dropping an llvm flag :)
| : StrEnumAttrCase<"CPUDefault">; | ||
| def CPU_Vectorization | ||
| : StrEnumAttrCase<"CPUVectorization">; | ||
| def CPU_TensorToVectors : StrEnumAttrCase<"CPUTensorToVectors">; |
There was a problem hiding this comment.
Style nit: please make consistent with the other lines.
| def DispatchLoweringPassPipelineEnum | ||
| : StrEnumAttr<"DispatchLoweringPassPipeline", | ||
| "identifier for pass pipeline use to lower dispatch region", [ | ||
| CPU_Default, CPU_Vectorization, CPU_TensorToVectors, |
There was a problem hiding this comment.
nit: Do you mind making this alphabetical.
|
Mmmmm, seems to breaking |
|
I incorrectly parsed the log |
|
Some of the benchmark models are failing too. Those are easier to triage. I think the steps are you have to set |
It should be |
MaheshRavishankar
left a comment
There was a problem hiding this comment.
This is fine, but there might be a better way. You can look at the hal.executable.variant to see if this is vmvx or not and then vectorize or not. Then we can drop all of these flags. Fine to do this in a later pass (let me know if you are going to do it in a later pass)
Sure, I can do this in second pass, but not sure which flags you are looking to drop? |
Abbreviated Benchmark Summary@ commit 869d8023698307991207ad7909986f2abeccb30e (vs. base 0af70597cae209fb5d0fbb8e3c86884f5966d952) Regressed Benchmarks 🚩
Improved Benchmarks 🎉
For more information: |
This flag here (https://github.com/google/iree/blob/fd7dd286d8cc653b27f85b9bf07a9683d9bf7abe/iree/compiler/Codegen/LLVMCPU/LLVMCPULowerExecutableTarget.cpp#L75). This is set when called from the executable translation. Instead, just look for the backend within the pass itself to figure it out so that all that plumbing can be cleaned up. |
Thanks for the heads up, seems like a canonicalized was merged upstream caused this. Should be fixed by #7065 |
Uh oh!
There was an error while loading. Please reload this page.