-
Notifications
You must be signed in to change notification settings - Fork 71
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
Missing CMake deps for THLO and suspect layering #45
Comments
Additional fix needed to satisfy the BFD shared linker: iree-org/iree@61e0e46 |
Pushed a review upstream that will make this more strict and less likely to be caught by downstreams: https://reviews.llvm.org/D131911 |
Using my super-powers to look at the internal CI, I see that it is:
I would address 1 by enabling the Python bindings. And for 3, I would change to BUILD_SHARED_LIBS=ON and see what breaks. I wouldn't do anything about 2 (the above patch to LLVM should make them all strict). |
Upstream patch landed. If you now enable the Python bindings in your CI at that patch or later, I expect that you will get a failure equivalent to what we experienced downstream. |
(and this will also make sure it works on Windows) |
(separately, we would also like the project layered better so that it is possible to depend on MHLO and specific conversions/passes vs the transitive "everything") |
Stella, thank you very much for filing the bug report and for digging into the details! We'll get this handled. |
Fixes the immediate problem behind #45 using patches by Stella. This CL doesn't aim to address the layering part of the issue, e.g. MHLO passes depending on the THLO dialect. For now, it just fixed the blocker on the IREE side where a symbol in a shared library (the THLO type descriptor) is failing to resolve at runtime. PiperOrigin-RevId: 467966552
Fixes the immediate problem behind tensorflow/mlir-hlo#45 using patches by Stella. This CL doesn't aim to address the layering part of the issue, e.g. MHLO passes depending on the THLO dialect. For now, it just fixed the blocker on the IREE side where a symbol in a shared library (the THLO type descriptor) is failing to resolve at runtime. PiperOrigin-RevId: 467966552
Thanks for the report and patch. As you noted, we did not see this issue as it does not show up on our CI. We are not using the As to the dependency of |
Can someone please land an equivalent of this change?
https://github.com/iree-org/iree-mhlo-fork/commit/a6a3308969278cf9ec36132fc9235314fd091c23
I only did a little bit of poking to get a minimum size patch, but the dependency chain and code organization of these pieces seems wrong. Can it be improved? Many of us are not using mlir-hlo as part of XLA where maybe this is tolerated, and it is counter-intuitive that the code is laid out to have such a large transitive dependency set of compiler internals just to get the top level dialect.
The text was updated successfully, but these errors were encountered: