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

[microNPU] Refactor base address determination to codegen #9929

Merged
merged 2 commits into from
Jan 26, 2022

Conversation

manupak
Copy link
Contributor

@manupak manupak commented Jan 13, 2022

This commit introduces BaseAddress ObjectRef to determine
base addresses in the codegen for microNPU. This is
required when multiple memory pools become available. Thus,
base addresses could not be statically determined in the
source module.

@manupak
Copy link
Contributor Author

manupak commented Jan 13, 2022

cc : @grant-arm @Mousius @ekalda @mbaret

@manupak manupak force-pushed the micronpu_base_address_refactor branch from e36f4bf to 48a7911 Compare January 13, 2022 19:10
@manupak
Copy link
Contributor Author

manupak commented Jan 17, 2022

a friendly ping for reviews! TIA.

@manupak
Copy link
Contributor Author

manupak commented Jan 18, 2022

Thanks @mbaret for the quick review! and I believe I've addressed the comments.

@manupak
Copy link
Contributor Author

manupak commented Jan 18, 2022

a friendly ping for @grant-arm @Mousius

Copy link
Member

@Mousius Mousius left a comment

Choose a reason for hiding this comment

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

This looks good to me @manupa-arm, I'd be cautious of over-using utils as a general place to put things though as it's unclear where the functional boundary is. I'd suggest renaming it to objects.cc which is one step less vague, or splitting it further in future.

@grant-arm
Copy link
Contributor

Thanks for this @manupa-arm , it looks good to me.

@manupak manupak force-pushed the micronpu_base_address_refactor branch 3 times, most recently from 8a71a57 to 378cbc1 Compare January 21, 2022 11:01
@manupak manupak mentioned this pull request Jan 21, 2022
@manupak manupak force-pushed the micronpu_base_address_refactor branch 2 times, most recently from 4e60749 to bab07be Compare January 25, 2022 19:21
This commit introduces BaseAddress ObjectRef to determine
base addresses in the codegen for microNPU. This is
required when multiple memory pools become available. Thus,
base addresses could not be statically determined in the
source module.

Change-Id: I6cfa578af0318bbe07d3bb9415df7bdd839611d3
* Renaming runtime_allocate to be scratch again.
* Docstring adjustments.

Change-Id: Ife8baf97f3dc9348718bd03e62549169a466fc34
@manupak manupak force-pushed the micronpu_base_address_refactor branch from bab07be to 01b1307 Compare January 26, 2022 06:52
@manupak
Copy link
Contributor Author

manupak commented Jan 26, 2022

@Mousius that make sense. lets rename it to be objects in a follow up. This passed CI :) finally. Can we take this in ?

@Mousius Mousius merged commit b972877 into apache:main Jan 26, 2022
@Mousius Mousius deleted the micronpu_base_address_refactor branch January 26, 2022 12:19
sunggg pushed a commit to sunggg/tvm that referenced this pull request Jan 29, 2022
This commit introduces BaseAddress ObjectRef to determine
base addresses in the codegen for microNPU. This is
required when multiple memory pools become available. Thus,
base addresses could not be statically determined in the
source module.
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
This commit introduces BaseAddress ObjectRef to determine
base addresses in the codegen for microNPU. This is
required when multiple memory pools become available. Thus,
base addresses could not be statically determined in the
source module.
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.

4 participants