-
Notifications
You must be signed in to change notification settings - Fork 661
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
Generates CMake rules with e2e test artifacts layer #10891
Conversation
b0b201f
to
b6d2e78
Compare
I decided to split the change into two:
|
@@ -9,8 +9,6 @@ | |||
################################################################################ | |||
iree_package_name(_PACKAGE_NAME) |
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.
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.
We had a discussion before about generating the file during the cmake configuration. It's a little bit tricky but doable.
Right now I think it's still in the tolerated level. But I'll spend some time revisiting the solutions.
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.
Could we please file an issue so we could look into this flow later?
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.
Filed #10928
build_tools/python/e2e_test_artifacts/cmake_generator/iree_generator.py
Outdated
Show resolved
Hide resolved
build_tools/python/e2e_test_artifacts/cmake_generator/common_generators.py
Outdated
Show resolved
Hide resolved
@dataclass(frozen=True) | ||
class IreeModelImportRule(object): | ||
target_name: str | ||
output_file_path: str | ||
cmake_rules: List[str] |
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.
It looks like a rule that is more suitable for the model_generator
module.
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.
This one is IREE specific rule, so I think it would be better to put it together with other IREE rules. model_generator
will be used by other non-IREE benchmarks in the future, so we won't want them to import IREE rules.
9971eca
to
f796d82
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.
LGTM. Pending other reviewers with different feedback.
build_tools/python/e2e_test_artifacts/cmake_generator/rule_generator.py
Outdated
Show resolved
Hide resolved
@@ -9,8 +9,6 @@ | |||
################################################################################ | |||
iree_package_name(_PACKAGE_NAME) |
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.
Could we please file an issue so we could look into this flow later?
…erator.py Co-authored-by: CindyLiu <[email protected]>
d46684a
to
2223186
Compare
Co-authored-by: CindyLiu <[email protected]>
Co-authored-by: CindyLiu <[email protected]>
Generates the cmake rules from e2e test artifacts layer added in #10901
This PR includes the changes in #10901
Note for helping review: Most of the code in
build_tools/python/e2e_test_artifacts/cmake_generator/*.py
are moved frombuild_tools/python/e2e_test_framework/cmake_rule_generator.py