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

[NNPA] Memory reduction of stickified constant by stickifying at file writing #2917

Open
wants to merge 38 commits into
base: main
Choose a base branch
from

Conversation

imaihal
Copy link
Collaborator

@imaihal imaihal commented Aug 26, 2024

This PR reduces memory usage for NNPA compilation. Current main branch created stickified data in ZHighCOnstPropagationPass and keep the data until compilation finish. This PR set original data, not stickified data, in ZHighConstPropagationPass. Then, in the KrnlToLLVMPass, stickfied data is created and stored in the file, and deleted after the writing. 
I created an option to enable this PR. Default enables this memory reduction.

image

@imaihal imaihal changed the title [NNPA] Memory reduction by running stickification at file wrting [NNPA] Memory reduction of stickified constant by stickifying at file writing Aug 26, 2024
@imaihal
Copy link
Collaborator Author

imaihal commented Sep 11, 2024

@jenkins-droid test this please.

@imaihal imaihal marked this pull request as ready for review September 24, 2024 00:43
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.

1 participant