Skip to content
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

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

shelkesagar29
Copy link
Contributor

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 when stablehlo is already a
dependency.

@shelkesagar29
Copy link
Contributor Author

@powderluv can you please help review?

Copy link
Collaborator

@stellaraccident stellaraccident left a 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)

CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
@shelkesagar29
Copy link
Contributor Author

shelkesagar29 commented Jan 13, 2025

@marbre can you take a quick look and give it a green light?

CMakeLists.txt Outdated Show resolved Hide resolved
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.
Copy link
Member

@marbre marbre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

CMakeLists.txt Show resolved Hide resolved
@marbre marbre merged commit 4f9f82d into llvm:main Jan 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants