-
Notifications
You must be signed in to change notification settings - Fork 3
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
Gather tests #40
base: main
Are you sure you want to change the base?
Gather tests #40
Conversation
Work in progress. Failing in SHLO
@@ -96,11 +96,15 @@ void ModuleBuilder::BuildModule(std::string_view code, std::string_view format, | |||
{ | |||
throw std::runtime_error("Failed to run MLIR compiler pass pipeline."); | |||
} | |||
DLOG_F(LOG_DEBUG, "TTIR Module"); | |||
shlo_pm.addPass(mlir::tt::ttir::createTTIRGatherPatternMatch()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding pass manually, can you just invoke the pipeline, like we do for TTIRToTTNN below?
I can see three issues with this graph.
Found another issue. |
The inliner pass runs as one of the very first passes in the TTIR to ttnn pipeline so you wouldn’t see its effect unless you followed the stablehlo to TTIR with the TTIR to TTNN pipeline. Its merged now so you can try |
Gather test is failing in SHLO, which seems to be related to constant op. I wanted to share the progress and if constant op seems to be the reason of failure, triage that.
Error I receive (with gdb):
tt-xla changes done:
Locally, adjusted llvm_project and stablehlo versions (third_party/tt-mlir/src/tt-mlir/env/CMakeLists.txt):
Will update these in tt-mlir if ok.