-
Notifications
You must be signed in to change notification settings - Fork 522
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
[cmake] Enable accepting external stablehlo project #3927
Conversation
@powderluv can you please help review? |
09e7068
to
e782023
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.
@marbre for visibility (he was talking about possibly modernizing some of the cmake goo around this)
e782023
to
4a11049
Compare
@marbre can you take a quick look and give it a green light? |
This MR enables `torch_mlir` project to accept path to external stablehlo and include those directories. This in turn enables `torch_mlir` to be part of bigger compiler project where `stablehlo` is already a dependency. One more change is added by changing the way set is created in `torch_mlir_target_includes`. Previous way of using `MLIR_INCLUDE_DIRS` variable was silently adding source directory into target include directories.
4a11049
to
c37dd7c
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.
Thanks!
This MR enables
torch_mlir
project to accept path to external stablehlo and include those directories. This in turn enablestorch_mlir
to be part of bigger compiler project whenstablehlo
is already adependency.