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

Buffer management and Stack size #161

Open
xliu0709 opened this issue Apr 27, 2019 · 0 comments
Open

Buffer management and Stack size #161

xliu0709 opened this issue Apr 27, 2019 · 0 comments

Comments

@xliu0709
Copy link

xliu0709 commented Apr 27, 2019

Hi,
I was reading the code of software part and I saw there is a buffer management of weight buffer for convolution hardware functions. The function xiConstBufCreate() use the checkStack() function to check whether next allocated block of memory can fit in the STACK_SIZE with it's previous allocated block of memory. Other wise it shall allocate a new STACK_SIZE of memory. I tried to use normal sds_alloc without this specific memory buffer management for each buffer allocation and I do observed performance drop.
I want to know what is the reason of making this buffer management. How is the STACK_SIZE decided and why this pattern of memory allocation can have better performance than randomly assigned memory block by sds_alloc(). Thank you.

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

No branches or pull requests

1 participant