-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Target] Support obtain l2 cache size from target #16039
Conversation
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 a lot for sending this PR! Adding new target attribute makes sense to me as it could be beneficial to all users of this target tag. IMHO we don't need to introduce new function to support add_config
as it's pretty much the same as set_config
. Other than this LGTM.
CC: @junrushao
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 again for the feedback, I did anther round of review and please feel free to reply in the thread!
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.
@zxybazh Thanks for the review |
* finished * 1106
This PR supports obtain l2 cache size from target. The API is
The l2 cache size is hardcoded in src/target/tag.cc.
This is useful for specializing schedule rules for different targets.
This PR is followup of #15332
cc @yzh119 @zxybazh