-
Notifications
You must be signed in to change notification settings - Fork 516
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
Reenable LTC in out-of-tree build (for real this time) #1205
Conversation
30bce05
to
eb4d3bd
Compare
6e3879b
to
c935795
Compare
46ab0d5
to
3a8e72a
Compare
3a8e72a
to
db6ae1b
Compare
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.
Looks good. Just to verify can you try the nighty release build to make sure it passes since there is a setup.py change.
Yep, I'm running one now: https://github.com/llvm/torch-mlir/actions/runs/2888787539 |
db6ae1b
to
5fa7151
Compare
f544d57
to
59f0b19
Compare
@silvasean @powderluv Release build ran thru successfully (only commits since then are comments, so it should be good to go) Here's a rerun if we wanted to be safe: https://github.com/llvm/torch-mlir/actions/runs/2889907205 |
@powderluv can I get some stamps on this please, if there's nothing that I need to change? Release build was successful on latest commit |
…lvm#1205) * Test Signed-off-by: Tung D. Le <[email protected]> * Support EBCDIC encoding for zOSs Signed-off-by: Tung D. Le <[email protected]> * Clean up Signed-off-by: Tung D. Le <[email protected]> * Check mtriple Signed-off-by: Tung D. Le <[email protected]> * Use llvm::Triple Signed-off-by: Tung D. Le <[email protected]> * sink charModeValue inside if stmt Signed-off-by: Tung D. Le <[email protected]>
This PR addresses #1154 and #1126, which means that LTC can build OOT -- which allows it to be included in our wheels 🎉 🎉 .
To summarize, a problem we were hitting before was that OOT build of LTC in CI would fail due to
TorchMLIRJITIRImporter
being switched to aSHARED
library, in order to access some functions from LTC. This resulted in some nasty nasty pybind errors.I was unable to root cause the source of the failure from changing the library type to
SHARED
; however, this PR gets around this problem by breaking upTorchMLIRJITIRImporter
into two parts: a core library, and the pybind. This way, the pybind can remainMODULE
, which will prevent the original problem.A new library called
TorchMLIRJITIRImporterPybind
has been created to handle the pybind, andTorchMLIRJITIRImporter
has been converted to a static library -- due to problems linking onmacOS-arm64
with a shared library. Detailed logs are available here,Even with this, LTC on
macOS-arm64
had been disabled to some other linkage issues, which will be addressed in the future here: #1253.This PR also makes it so that LTC is built by default, now that it works for the majority of our CI configs. LTC has been explicitly disabled on macOS-arm64.
cc: @ke1337 @antoniojkim