Skip to content

Conversation

@Ubospica
Copy link
Contributor

@Ubospica Ubospica commented Nov 2, 2023

This PR supports obtain l2 cache size from target. The API is

target.l2_cache_size_bytes

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

@github-actions github-actions bot requested review from yzh119 and zxybazh November 2, 2023 22:36
Copy link
Member

@zxybazh zxybazh left a 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

Copy link
Member

@zxybazh zxybazh left a 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!

Copy link
Member

@zxybazh zxybazh left a comment

Choose a reason for hiding this comment

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

LGTM.

@Ubospica
Copy link
Contributor Author

Ubospica commented Nov 7, 2023

@zxybazh Thanks for the review

@zxybazh zxybazh merged commit 448de89 into apache:main Nov 7, 2023
Ubospica added a commit to Ubospica/tvm-develop that referenced this pull request Nov 13, 2023
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.

2 participants