-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[uTVM][AOT] Adding workspace byte alignment #8019
Conversation
* This commit adds byte alignment support for workspaces * Updating AoT tests to use calculate workspaces Change-Id: I88380d875269e1ffa4a51a9cceefd51b3042f1a7
* fixed aot_memory cpp tests * add new error type for stack allocator bad frees Change-Id: Iadb4770ac761ef5edb80308e18120443d269c83d
@manupa-arm thanks for putting this up! did an initial pass and left some comments |
* addressing comments + LIFO change Change-Id: I1e8ad47e11e220f879bf936da2abb3d111db89f0
* addressing comments further Change-Id: Idb07d28b55520d8897d7dbcb9ef4aad5e3e7b35c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay did a final pass, just found one other thing, looks good otherwise.
* addressing comments - add a default constant to alignment Change-Id: Id3f486bfdc0bd57d54b3c4097885cb54675196ca
I think I've addressed all of you comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @manupa-arm !
* Adding workspace byte alignment * This commit adds byte alignment support for workspaces * Updating AoT tests to use calculate workspaces Change-Id: I88380d875269e1ffa4a51a9cceefd51b3042f1a7 * Adding workspace byte alignment * fixed aot_memory cpp tests * add new error type for stack allocator bad frees Change-Id: Iadb4770ac761ef5edb80308e18120443d269c83d * Adding workspace byte alignment * addressing comments + LIFO change Change-Id: I1e8ad47e11e220f879bf936da2abb3d111db89f0 * Adding workspace byte alignment * addressing comments further Change-Id: Idb07d28b55520d8897d7dbcb9ef4aad5e3e7b35c * Adding workspace byte alignment * addressing comments - add a default constant to alignment Change-Id: Id3f486bfdc0bd57d54b3c4097885cb54675196ca
* Adding workspace byte alignment * This commit adds byte alignment support for workspaces * Updating AoT tests to use calculate workspaces Change-Id: I88380d875269e1ffa4a51a9cceefd51b3042f1a7 * Adding workspace byte alignment * fixed aot_memory cpp tests * add new error type for stack allocator bad frees Change-Id: Iadb4770ac761ef5edb80308e18120443d269c83d * Adding workspace byte alignment * addressing comments + LIFO change Change-Id: I1e8ad47e11e220f879bf936da2abb3d111db89f0 * Adding workspace byte alignment * addressing comments further Change-Id: Idb07d28b55520d8897d7dbcb9ef4aad5e3e7b35c * Adding workspace byte alignment * addressing comments - add a default constant to alignment Change-Id: Id3f486bfdc0bd57d54b3c4097885cb54675196ca
Currently the AoT executor uses the stack-based allocator to allocate tensors within the provided workspace buffer. This bit of work ties up the calculated workspace size to create the correctly sized buffer to be used with stack-based allocator + AoT executor. Moreover, certain hardware platforms require the addresses of tensors to be byte aligned, thus this PR adds support for optional workspace-byte-alignment option to states that while defaulting to 1.
cc: @giuseros @Mousius @areusch