Skip to content

[microNPU] Refactor base address determination to codegen - #9929

Merged
Mousius merged 2 commits into
apache:mainfrom
manupak:micronpu_base_address_refactor
Jan 26, 2022
Merged

[microNPU] Refactor base address determination to codegen#9929
Mousius merged 2 commits into
apache:mainfrom
manupak:micronpu_base_address_refactor

Conversation

@manupak

@manupak manupak commented Jan 13, 2022

Copy link
Copy Markdown
Contributor

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

manupak commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

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

manupak commented Jan 17, 2022

Copy link
Copy Markdown
Contributor Author

a friendly ping for reviews! TIA.

Comment thread tests/python/contrib/test_ethosu/test_tir_to_cs_translator.py Outdated
Comment thread python/tvm/relay/backend/contrib/ethosu/tir_to_cs_translator.py Outdated
Comment thread python/tvm/relay/backend/contrib/ethosu/tir_to_cs_translator.py
Comment thread python/tvm/relay/backend/contrib/ethosu/tir_to_cs_translator.py Outdated
Comment thread python/tvm/relay/backend/contrib/ethosu/tir_to_cs_translator.py Outdated
Comment thread src/relay/backend/contrib/ethosu/utils.h Outdated
@manupak

manupak commented Jan 18, 2022

Copy link
Copy Markdown
Contributor Author

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

@manupak

manupak commented Jan 18, 2022

Copy link
Copy Markdown
Contributor Author

a friendly ping for @grant-arm @Mousius

@Mousius Mousius left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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

manupak commented Jan 26, 2022

Copy link
Copy Markdown
Contributor Author

@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