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

[TIR] [Hexagon] Add get_vtcm_allocation_sizes with lowering #14720

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

quic-sanirudh
Copy link
Contributor

@quic-sanirudh quic-sanirudh commented Apr 25, 2023

This patch adds a utility function for getting the VTCM sizes allocated in an IRModule. In order to do that, we've exposed the list of lowering passes to python and we've refactored the PostprocVerifyVTCMLimit to be computed for whole module and the same list of lowering passes

@tvm-bot
Copy link
Collaborator

tvm-bot commented Apr 25, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@quic-sanirudh
Copy link
Contributor Author

cc @masahi @Icemist

This patch adds an utility function for getting the VTCM sizes allocated
in an IRModule. In order to do that, we've exposed the list of lowering
passes to python and we've refactored the PostprocVerifyVTCMLimit to be
computed for whole module and the same list of lowering passes


def get_vtcm_compaction_passes() -> List[tvm.transform.Pass]:
"""Utility function to get the list of lowering passes to be applied to calculate thecompacted
Copy link
Member

Choose a reason for hiding this comment

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

Please fix the typo thecompacted later

@masahi masahi merged commit 486c498 into apache:main Apr 26, 2023
@quic-sanirudh quic-sanirudh deleted the calculate_vtcm_size_util branch November 15, 2023 02:42
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