Skip to content

[microNPU] removing extra bytes for workspace#9629

Merged
leandron merged 1 commit intoapache:mainfrom
manupak:remove_extra_memory_for_micronpu
Dec 2, 2021
Merged

[microNPU] removing extra bytes for workspace#9629
leandron merged 1 commit intoapache:mainfrom
manupak:remove_extra_memory_for_micronpu

Conversation

@manupak
Copy link
Contributor

@manupak manupak commented Dec 1, 2021

Given that microNPU codegen uses target hooks
it goes through the core compiler that updates
workspace sizes. We dont need the additional
sizes anymore. This commit removes the sizes.

Given that microNPU codegen uses target hooks
it undergoes the core compiler that updates
workspace sizes. We dont need the additional
sizes anymore. This commit removes the sizes.

Change-Id: Ifd2a01e5f9566ee0c37778f32392d6d1f8c7c091
@manupak
Copy link
Contributor Author

manupak commented Dec 1, 2021

cc : @leandron @grant-arm @Mousius

@jroesch
Copy link
Member

jroesch commented Dec 2, 2021

Does it make sense to remove this field all together vs. just setting it to zero?

@manupak
Copy link
Contributor Author

manupak commented Dec 2, 2021

@jroesch I think its still useful in cases where stack allocator is used in debug mode where tags are stored in the workspace itself. Thus, the workspace required would be larger than what TIR would say.

E.g. :

extra_memory_in_bytes=debugging_memory_overhead,

Copy link
Contributor

@leandron leandron left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @manupa-arm!

@leandron leandron merged commit dbfbd16 into apache:main Dec 2, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
Given that microNPU codegen uses target hooks
it undergoes the core compiler that updates
workspace sizes. We dont need the additional
sizes anymore. This commit removes the sizes.

Change-Id: Ifd2a01e5f9566ee0c37778f32392d6d1f8c7c091
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
Given that microNPU codegen uses target hooks
it undergoes the core compiler that updates
workspace sizes. We dont need the additional
sizes anymore. This commit removes the sizes.

Change-Id: Ifd2a01e5f9566ee0c37778f32392d6d1f8c7c091
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 12, 2022
Given that microNPU codegen uses target hooks
it undergoes the core compiler that updates
workspace sizes. We dont need the additional
sizes anymore. This commit removes the sizes.

Change-Id: Ifd2a01e5f9566ee0c37778f32392d6d1f8c7c091
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
Given that microNPU codegen uses target hooks
it undergoes the core compiler that updates
workspace sizes. We dont need the additional
sizes anymore. This commit removes the sizes.

Change-Id: Ifd2a01e5f9566ee0c37778f32392d6d1f8c7c091
qsqqsqqsq-intellif pushed a commit to qsqqsqqsq-intellif/tvm that referenced this pull request Apr 29, 2022
Given that microNPU codegen uses target hooks
it undergoes the core compiler that updates
workspace sizes. We dont need the additional
sizes anymore. This commit removes the sizes.

Change-Id: Ifd2a01e5f9566ee0c37778f32392d6d1f8c7c091
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